web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get user from Microsof...
Power Automate
Answered

Get user from Microsoft Entra ID and add to a security group

(2) ShareShare
ReportReport
Posted on by 37
I am building a flow which is linked to a SharePoint list on the list they have fields for user information i.e. Name, email, dept etc.  It also has 2 dates enable Date and disable date.  This is to be used when users go overseas as they need to be added to a security group in Entra ID.  So far the flow gets the user or item from the list using office 365 connection gets other information for the profile email, dept, mobile number.  Then the flow is paused and is schedule to run when the time = the enable date at this point i want to add the user to a security group in entra id but struggling to work out the best way of doing this.  Has anyone done this or has any ideas would be appreciated
Categories:
I have the same question (0)
  • Verified answer
    narayan225 Profile Picture
    2,547 Super User 2025 Season 2 on at
    I have done this before.
    Below is how I did it using two SharePoint lists.
     
    I created two flows:
    1. Add user to the group on start date
    2. Remove user from the group after end date
    The first stores the list of requester (user), the start, end date and the group name.
    The second list contains the group name and the object ID from entra/azure.
     
    Then the flows get the request item, the group mapping and user the Add user to security group and remove user from security group action from Entra ID.
     
    Hope this helps.
    Cheers!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard