Obtains the printer group to which belows the indicated user.

1 system.user.getPrinterGroup

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

Obtains the printer group to which belows the user which executes the action.

Copy
<xsql-script name='system_user_getPrinterGroup_sample1'>
    <body>
        <println>
            <system.user.getPrinterGroup/>
        </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

Obtains the printer group of a specific user.

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

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