Azure AD spoke user creation

Heisenberg
Tera Contributor

Hi Experts,

 

My requirement is to create a user in Azure AD using Azure AD spoke based on the information provided by a catalog item (which has first name, last name, location etc); once the user gets created in Azure AD same user record should get created in servicenow and after that based on the start date field new catalog item should be created for laptop allocation. Basically we are doing it for user  IT onboarding. 

 

when I look into sample flow designer of onboarding its other way around like first user is getting created in ServiceNow and then its going to Azure AD using azure ad spoke to create user.

I want to Master source should Azure AD and then it should come to servicenow, how can I achieve this, I have already established the oauth connection to Azure AD 

 

I need a flow logic to achieve this, please advice!

 

3 REPLIES 3

spike
Mega Sage

My guess here is you're looking at the same example I did earlier in the day. That just used creating a new record in the sys_user table as the trigger. You can put whatever trigger you like in there..

Vallabh Baradk2
Giga Guru

Hi @Heisenberg ,

 

You can check for the status of the spoke in flow designer. if it comes success you can extend your flow designer to create new user and after that write below script to automatically raise catalog request

 

 var cart = new sn_sc.CartJS();

 

var newItem = cart.addToCart({

 

"sysparm_id": "SYS_ID_OF_CAT_ITEM",

 

"sysparm_quantity": "1",

 

"sysparm_requested_for": "SYS_ID_OF_REQUESTED_FOR_USER",

 

"variables":{

 

"acrobat": "true",

 

"photoshop": "false",

 

"Additional_software_requirements": ""

 }

 });

 

var checkoutInfo = cart.checkoutCart();

 

Please mark helpful or correct answer if it helps you.

 

 

 

Thank you,

Vallabh

Community Alums
Not applicable

@Heisenberg , Have you got the solution?