The getUserPermissionsForAllResources() method in detail.
getUserPermissionsForAllResources()
method retrieves a comprehensive list of permissions assigned to a user across all resources they have access to, taking into account the type of permissions, user role, membership status, and the validity of such permissions.
args
object with the following properties:
userID
: The unique identifier for the user.permissionType
(optional): Specifies the type of permissions to retrieve.membership
(optional): The membership status to consider in the permissions query.userType
: The category of user (e.g., admin, standard user).forResource
(optional): A specific resource for which to retrieve the user’s permissions.getUserPermissionsForAllResources()
is called to retrieve all APP_CLIENT
type permissions for a USER
type user, specifically for a resource they are associated with.