Remove role from multiple users, Roles are inherited from groups

jayavarthini D1
Tera Contributor

Hi All,

I need to remove specific role from 2k users.

I need to remove role which are inherited from group. I want to remove only the role to the users not in the group

I have email id and userID as unique field.

I want to write a schedule job for this activity.

Please write one by one steps for clear understanding.

 

Please let me know your suggestions.

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @jayavarthini D1 

 

To do this., take a pen and paper and build teh logic first. You statements are confusing and not clear.

 

Logically a role assigned to group and user mapped to that group. The requirement is not straight forwards, first try to do this via report or list view and then build the job.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Sumanth16
Kilo Patron

Hi @jayavarthini D1 ,

 

Please refer to below thread:

 

https://www.servicenow.com/community/now-platform-forum/cannot-remove-roles-for-users-that-are-quot-...

 

https://www.servicenow.com/community/now-platform-forum/unable-to-remove-roles-from-users-who-have-i...

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda