Forum Discussion
tjson
Nov 19, 2024Copper Contributor
Adding users to an AD group with Azure Functions/Logic Apps
I want to add users to an Entra ID/Azure AD group. The list of users will be retrieved from a REST API call with Azure Functions, and then saved into a database, probably Azure SQL. I'm planning on t...
balasubramanim
Nov 20, 2024Iron Contributor
Please try the below steps.
1. Fetch Users with Azure Function
Use an Azure Function (triggered by a timer or webhook) to fetch users from the REST API.
Save the user data into an Azure SQL database, ensuring only new/updated users are stored.
Sync with Azure AD Using Logic Apps
2. Use an Azure Logic App to
Query the database for new users.
Add users to the Azure AD group using the Azure AD connector.
3. Make It Reactive
If the REST API supports notifications, trigger the Azure Function directly on changes. Otherwise, run it on a schedule.