Removing roles from a User

GaneshErike
Tera Contributor

Hi,

 

One user is part of 7 groups. Out of those, one group was archived a long time ago, but the user is still showing as a member of that group. Some roles are being granted through this archived group.

 

I tried removing the user from that group in the test instance, but the roles are still present.

 

I need to remove the roles that were granted specifically by that archived group. Any idea why the roles are still there even after removing the user from the group? Or how I can clean this up properly?

 

Thanks.

17 REPLIES 17

Anand Kumar P
Giga Patron
Giga Patron

Hi @GaneshErike ,

 

Just a note — deactivating a user group does not remove the roles that users got from that group. If a user is still in the group, they will still have those roles. So, make sure to remove the roles first.

 

Also, check if the role is coming from another group the user belongs to, or if it was assigned directly to the user.

 

If my response helped, please mark it as the accepted solution and give a thumbs up👍.
Thanks,
Anand

Hi Anand Kumar,

 

I am not able to see the roles in archived group; it is in read only mode.

Roles are coming from the archived group.

John Gilmore
Giga Guru

Are your user groups synced from AD or something which may be overriding your manual removal of the user?

In either case as @AshishKM pointed out, when a group is archived the roles should be removed from it as archiving does not disable those associations. Rather than removing the user from the group, try removing the roles from the group.

Also after changing roles/permissions make sure to completely exit your browser and relog into the instance to make sure that the changes are being applied otherwise session information may be out of date.

Masthan Sharif
Tera Guru

Hi @GaneshErike,

Hope you're doing well!

 

You can remove the roles from the group in test instance and see if that helps.


Sometime re-adding the user to the group and then removing the user again helps, this triggers the cleanup workflows/scripts and revokes roles inherited from that group.

If you still see roles after removing the user from group, check the sys_user_has_role records creation time, if its recent - may be a script/flow running to re-add the roles to the user after you remove the user from group.


You might want to check if the user is getting re-added to the group after removing the user from group or just roles are being added.

 

Best Regards,

Sharif

Hi @Masthan Sharif,

 

I am not able to see the roles section in archived group as it is in read only mode.