Help me with the scheduled job script on how to remove user roles.

Balaram7
Kilo Sage

Hi everyone, 

 

We have a requirement to remove user roles and user groups.

This should happen when the user record is set to Active "False".

After 7 days we need to remove user roles and need to remove the user record from the user groups as well.

 Please help me with the best way to achieve this.

 

 

Thank you,

Balaram.

7 REPLIES 7

@Balaram 

Hope you are doing good.

Did my reply answer your question?

If my response helped you please mark it correct to close the question so that it benefits future readers as well.

Regards
Ankur

 

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

@Balaram 

Hope you are doing good.

Did my reply answer your question?

If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.

Regards
Ankur

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

@Balaram 

Hope you are doing good.

Did my reply answer your question?

If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.

Regards
Ankur

 

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