Auto add or remove users to azure group

Thomas98
Tera Expert

Good Morning,

 

Can someone please shed some light on this. 

 

I have a catalog item in Servicenow which will auto add or remove a user to a servicenow group.

Now we want the user that is added or removed  to this servicenow group to automatically add or remove them to Azure group. 

 

Also, if a user is removed from the same azure group, can we automatically remove this user from the servcienow group? 

 

Is that possible to achieve?  Is there any product documentation on this?

 

Thanks

2 REPLIES 2

HrishabhKumar
Kilo Sage

Hi @Thomas98 ,

If you have both groups in which you have to add or delete user than you can use catalog client script and add the script logic to do so. Most probably you'll have to use onSubmit catalog client script.

Go though this solved community thread to see the logic to add or remove user from a group : https://www.servicenow.com/community/itom-forum/need-help-with-script-to-add-and-remove-users-from-g...

 

Customize this solution according to your requirement, and it should work.

 

Thanks and regards.

HRISHABH KUMAR

Mark this helpful and accept solution if my response turds useful.