- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2025 09:31 PM
Hi,
I'm trying to add a user to a group using Microsoft Entra spoke and Add User to Group Action. it seems the actual step is getting completed but after that an error comes as "Unknown Error " thereby the flow gets exited by throw error exception.
Then I'm not able to know the actual error or not able to resolve the issue. Your help will be appreciated.
Here is the screen capture
Thank you,
Sanotsh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2025 05:14 AM
Hi,
The issue resolved after continuous explore and trialing different options.
The input parameters to the "Add User to Group" action under Microsoft Entra (Azure AD ) should be properly mentioned in the label header so that the user can understand the input parameters should be specific exactly what AzureAD expects and not from Servicenow user table parameters as most of the cases the parameters are having same names.
Here the UserID parameter is different in Servicenow than in AzureAD. So we have to user Lookup User to get the actual UserID from AzureAD and use that UserID parameter in Add User to Group Action.
I think the label can mention User ID from AzureAD instead of only "User ID" and the error message should mention properly on the invalid parameter or similar and not as "Unknown Error". This error message gives no clue how to troubleshoot and eats our hours time to know the RCA.
Thanks
San
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2025 05:14 AM
Hi,
The issue resolved after continuous explore and trialing different options.
The input parameters to the "Add User to Group" action under Microsoft Entra (Azure AD ) should be properly mentioned in the label header so that the user can understand the input parameters should be specific exactly what AzureAD expects and not from Servicenow user table parameters as most of the cases the parameters are having same names.
Here the UserID parameter is different in Servicenow than in AzureAD. So we have to user Lookup User to get the actual UserID from AzureAD and use that UserID parameter in Add User to Group Action.
I think the label can mention User ID from AzureAD instead of only "User ID" and the error message should mention properly on the invalid parameter or similar and not as "Unknown Error". This error message gives no clue how to troubleshoot and eats our hours time to know the RCA.
Thanks
San
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2025 04:13 PM
I am having the same issue, but I am using the email ID from the requester which matches the value in Microsoft Entra. What specifically did you use to resolve the issue?
Thanks,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2025 08:01 PM
Hi Mark,
You need to use Lookup user for Microsoft Entra action using user's email address or DisplayName. then you'll get actual user_id from Microsoft Entra in aplhanumeric which is different from sys_id of user from servicenow.
Then you need to use Microsoft Entra Add user to group action and use above user_id. That will work.
Thanks
Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2025 08:39 AM
Thanks, that resolved the user lookup issue. Now it fails on Add User to Group with
{
"Action Status": {
"code": 1,
"message": "Error: Unknown Error (Process Automation.bc3055da0bd4a110cfed40976877c684; line 6)"
}
}
