Need help on assigning o365 license from ServiceNow flow

venuvedala
Tera Contributor
{
    "Action Status": {
        "code": 1,
        "message": "Error:  Unknown Error (Process Automation.17308fbf77816110cc985228c81061df; line 5)"
    }
}

Integrated ServiceNow with Azure AD using spoke. I am able to create a user from the flow using create user trigger (RITM) but not  able to assign license. 

venuvedala_1-1688717125413.png

 

5 REPLIES 5

Bruno Knewstubb
Tera Contributor

The two things I learned when using this action:

1. As already noted, User ID can be the UserPrincipalName (example@company.org), but the SKU ID should be the GUID for the product

2. Make sure your user has Usage Location already set before assigning a licence - you may need to use the Update User action for that.