xdmp.useridRoles( $userId as String, [$extSecId as String], [$secDbFirst as Boolean] ) as ValueIterator
Returns all roles assigned to a user, including roles directly assigned to the user and roles inherited by other roles. Returns role IDs for users from the security database or from the specified external security, depending on the parameter values.
|$userId||The user ID.|
|$extSecId||An external security config ID to search. This is needed only to find an external user. The default is the current App Server's external-security setting.|
|$secDbFirst||A boolean value to specify whether to check security database before any specified external security. The default is the current App Server's internal-security setting, or true when running on the task server.|
xdmp.userRoles(83928739123); => [2349872340, 432987324]