getPermissionSet()

The method returns the authorizations of a user.

Synopsis

public bit32 getPermissionSet();

Return Value

The authorizations of a user.

Errors

Errors are shown in the log viewer.

EXAMPLE

#uses "classes/userManagement/UserManagement"
main()
{
  shared_ptr<UserManagement> userMgm = UserManagement::getInstance();
  shared_ptr<UserManagementUser> usr;
  long userID = 0;
  usr = userMgm.getUser(userID);
  bit32 permission;
  usr.getPermissionSet();
  /* Returns the user with the user ID 0 */
  DebugN("The permisson set of the user ", usr.getName(), "is", usr.getPermissionSet());
}

Assignment

User administration

See also

setPermissionDescription()