- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2017 01:07 AM
Hello,
By mistake one of our colleagues has removed the roles for a user. The roles removed were non-admin roles hence not inherited.
Is there any way by which we can know what roles were assigned to a user ?
Please help !
Thanks in advance.
Archana
Solved! Go to Solution.
- 18,035 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2017 01:12 AM
Hi archana,
You can restore the roles assigned to user by following this path.
Go to deleted records as shown below :
click on Button Record.
Regards,
Govind Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2017 01:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2017 01:18 AM
Hi Archana,
You can write var ourUser = gs.getUser(); it will return you user object
gs.getUser().getUserRoles(); it will return the all rols which are granted to the user
gs.getUser().hasRole() returns true or false if the current user has the provided role (takes a role name as its argument)
gs.getUser().isMemberOf() -- returns true or false if the current user is a member of the provided group (takes a group name or sys_id as its argument). isMemberOf() returns false if the group is inactive, even if the user is a member.
Hope it will help you.
Please mark answer as correct answer if it helps you