Give us feedback
Service icon

Roles Utility

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded on 14 September 2019 by 
 (4 ratings)

Roles Utility

A different way, easier and quick to manipulate the outsystems roles in runtime.
Read more

This component bring to our community a different way to add role to OutSystems users in runtime.

Normally when we have a external provider like federated identity provider (Idp) we need sometimes match the roles come from our provider and outsystems roles, this logic happens normally in the application login.

For security reasons OutSystems users should never have a role associate themselves. It is because the roles must be provided by our Idp server.

My first approach would be create a login action calling Idp and matching the roles between OutSystems and Idp, but for this I will have to create a new record on this table "User_Role" for each role, combining  user and roles. Furthermore, I will need remove all roles before starting add the new to keep our roles updated as our Idp provider.

So, this component set directly in OutSystems session user the roles, we do not have to create a relationship in database, we do not need to clear roles from database as well. This component help us to avoid many calls to database, doing exactly what OutSystems do but jump some steps.  

If you are curious, take a look in this extension and I hope it be useful.

Release notes (1.0.0)
Reviews (0)
Related assets