Obtains the group to which belows the user.

1 system.user.getGroup

<system.user.getGroup code='code'/>
Example

Obtain the group to which belows the user which executes the action.

Copy
<xsql-script name='system_user_getGroup_sample1'>
    <body>
        <println>
            <system.user.getGroup/>
        </println>
    </body>
</xsql-script>

If you do not pass the user code via the attribute code, the system returns the value related with the user which executes the command.

Example

Obtain the group of the specific user.

Copy
<xsql-script name='system_user_getGroup_sample2'>
    <body>
        <println>
            <system.user.getGroup code='jet'/>
        </println>
    </body>
</xsql-script>

Informing the attribute code, the system returns the value related with the specific user code.