Automatic removal of non active users from groups/roles

Sireesha7
Tera Contributor

Hi All,

I need to implement a business rule on insert and update of users, which will check if the Active checkbox is true or false.

If it’s false, it means that the user is inactive and therefore he should be removed from all the groups and all the roles.

 Also, I need to create a warning popup which will show when we try to Save a user profile, when we have made it inactive. This will prevent us from accidentally inactivating a user.

The text should be: Are you sure you want to deactivate this user? Click OK to proceed of Cancel to go back

And then we should have OK and Cancel buttons.

Could any one can please let me know and do the needful.

 

Thanks & Regards,

Sireesha

12 REPLIES 12

@Kim5 

Glad to help and thank you for your compliments.

Happy learning.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Unfortunately, all the users roles are gone is there any way revert it back

@Anjali08 

Please post a new question and tag me there with your requirement, This is an old thread

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thank you so much 🙂

 

@Sireesha 

Please mark my response as correct and helpful to close the thread if it helped..

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader