Skip to main content

UCR.GetRoleById

Optional integration

This method requires UncomplicatedCustomRoles.

Gets a registered UCR role by ID.

Syntax​

UCR.GetRoleById role_id

Returns​

reference to UCRRole object

Arguments​

NameRequiredTypeDescription
role idYesAny whole number

Details​

The reference exposes id, name, and object. UCR role properties are available through the same reference.

Possible errors​

  • The role ID is not registered in UCR.

On a running server​

Use serhelp UCR.GetRoleById to inspect the reference generated by your installed SER version.