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 Apps / check if team has role...
Power Apps
Unanswered

check if team has role in Power Automate

(0) ShareShare
ReportReport
Posted on by 217

In my model driven app I have a table, Profit Centre which has the field delegatedTeam. delegatedTeam is a lookup to the built-in Team table. There is a business requirement that the delegatedTeam be assigned the security role PCdelegate.

 

I'm building a flow that is triggered by a change in the delegatedTeam  field.

  • Do I need to check if the team has the required role?
  • Or can I just relate the required row to the team without checking?
  • If I have to check, how do I list the team's existing roles?  (teams <-> security roles is many-to-many)
I have the same question (0)
  • Verified answer
    EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @halifaxious,

    Why do you need to check? You can update the row directly and if the team doesn't have the right privileges then the update operation will fail. If for whatever reason you need to check, suggest to check instead by security role by another field/column (or new one if it doesn't exist) on Team that can give you the right filtering.

    The N-N (many-to-many) table that relates a team to security role is "teamroles_association" BTW.

    Hope this helps!

  • halifaxious Profile Picture
    217 on at

    It's possible that the Team may already have the required role. I wasn't sure if Power Automate would gracefully handle trying to link the same role to a team twice.

  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    No PA or Dataverse won't assign roles automatically

  • halifaxious Profile Picture
    217 on at

    I think there's a misunderstanding. I was not expecting a team to get a role without intervention. I was concerned that if a team already had "role X", giving it "role X" again would break something. Evidently I don't need to worry about that.

  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Got it, and no you don't need to worry about it 🙂

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard