Skip to main content




Service Studio version:

Role Exception

  • Edit
    Collaborate with us
    Edit this page on GitHub
  • Role Exception is a custom exception created automatically by OutSystems from each role available in your module.

    The name of a Role Exception takes the following form:

    Not <role_name>

    For example, if you create a role named BackofficeUser in a module, OutSystems automatically creates a Role Exception named Not BackofficeUser in the same module.

    Role Exceptions are child nodes of the "Not Registered" System Exception.

    Using a Role Exception

    Raise a Role Exception in your logic when a user without the appropriate role tries to perform an action that should only be performed by users with that role.


    Name Description Mandatory Default value Observations
    Role Yes
    • Was this article helpful?