Azure AD spoke user creation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2023 01:43 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2023 08:58 AM
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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2023 03:23 AM - edited 05-04-2023 03:24 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2024 11:02 PM
@Heisenberg , Have you got the solution?