Postman collection
General Read

pixiGetUserPermissions

Returns Pixi users with their names and a semicolon-separated list of permission codes derived from their roles.

Returns the permission codes of one Pixi user or of all users.

  • If UserName is given, only that user is returned. If it is empty or NULL, all users are returned.
  • The built-in user master is always excluded.
  • Only users that have at least one role assigned are considered. Users without roles are not returned at all.
  • Permission codes come from the user's roles through the role-to-permission assignments. Each code appears at most once per user, even if several roles grant it.

The call returns one row per user. PermissionCode holds all codes of that user joined with ;.

If no matching user is found, a status row with Status = Error is returned instead.

Notes

  • All tables are read with NOLOCK, so uncommitted data may be returned.
  • Each permission code is converted to varchar(10) before it is joined. Longer codes are cut off.
  • If a user's roles grant no permissions, PermissionCode is NULL.
  • Neither the rows nor the codes inside PermissionCode have a guaranteed order.
  • The list is built with FOR XML PATH. Characters such as &, < or > would therefore appear XML-escaped.
  • When all users are requested and none is found, the error message names an empty user name ('').

Tables used

UCS_USERS · Read USER_HAS_ROLES · Read ROLE_HAS_PERMISSIONS · Read User_Permissions · Read
SQL object:
dbo.pipiGetUserPermissions
Updated at 2026-10-30