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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Execute plugin when a ...
Power Apps
Unanswered

Execute plugin when a user is associated with AAD Security Group Team

(1) ShareShare
ReportReport
Posted on by 23

Hello,

 

We are trying to write a plugin that executes when a User is placed in an AAD Security Group Team.

We have tried using the Associate message (this is used when a User is placed in Team via UI) and AddMembers message (this is executed when a User is placed in a Team programmatically), but with no luck. Does anybody have an idea on which message can we use the plugin?

 

What we are trying to do is place a User in a Business Unit that corresponds to the Business Unit on the Security Group Team. For example, let's say that a User belongs to Business Unit A, but is later placed in a Security Group Team that is in Business Unit B. What we have found is that, even though the User is placed in this Team, his Business Unit remains A. Then we get into a weird situation where a User belongs to A, but can see records from B (through the Team's security rights). 

What we are trying to achieve is to have a single point of administration for User's BU, Team and corresponding Security Roles. Since the BU is not propagated through AD Sec Group Team, our idea is to write a plugin that will be executed on this association, and place the User in the correct BU.

If it is not possible with plugin code, does anybody have other ideas on how to achieve this? 

I have the same question (0)
  • jm125245 Profile Picture
    on at

    You could use change notifications on Microsoft Graph. As I don’t think you custom apis support anonymous authentication, it’d have to be hosted outside and environment - eg. an azure function or similar. 

     

    https://docs.microsoft.com/en-us/graph/api/resources/webhooks?view=graph-rest-1.0

     

    An self contained alternative could be a self-chaining-workflow that checked membership on a schedule/loop (polling).

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard