Need to add/remove the user from azure entra AD using the flow action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi,
I am trying to add the user in the entra AD group by using action in the flow designer called as "Add the user in group", I have added all required API permission and also I am able to use "Lookup user" successfully. But when I try to add the user it throws an error, Please let me know how to fix the issue.
{ "Action Status": { "code": 1, "message": "Error: Unknown Error (Process Automation.6500ec63473907106fb3877f316d4376; line 6)" } }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hey @JyotiSunilS
Have you tried looking up the group also? To see if your account has group access?
If you have, and that works successfully, try removing and readding that action and inputting the info again.
Also - looks like its failing on whatever is in your system with the sys_id: 6500ec63473907106fb3877f316d4376 on line 6. Take a look at what that object is doing, and what is happening around line 6 - that might support your troubleshooting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi @Hanna_G ,
Thank You for your quick response.
Yes I have tried looking up group and it worked successfully.
But I think the issue is different. I am pasting the error below
"Unable to update the specified properties for on-premises mastered Directory Sync objects or objects currently undergoing migration."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hey @JyotiSunilS
This looks like an issue with Active Directory & Entra. I suspect your Active Directory is synced with Entra, but management needs to happen directly on the on-prem version not in Entra.
You might need to use this spoke instead: Microsoft Active Directory v2 Spoke - ServiceNow Store
It might also need different credentials enabled.