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 / Retrieve the assigned ...
Power Apps
Answered

Retrieve the assigned Security Role Name

(1) ShareShare
ReportReport
Posted on by 8
How to get the user security role name assigned in Power platform admin center (under Environment and not in Azure Entra ID) through canvas Powerapps ?
I have the same question (0)
  • Suggested answer
    Nafiun2120 Profile Picture
    144 on at
     
    First add this dataset in your power apps. . Then on a button or App.Onstart use this 
    ClearCollect(
        MySecurityRoles,
        LookUp(
            Users,
            'Primary Email' = User().Email
        ).'Security Roles (systemuserroles_association)'
    )
    You should have the role in the name column of the collection.
  • AJ's POWER Profile Picture
    8 on at
    Hi @Nafiun,
     
    In the whole table of columns, only role id rows are visible. Could you help to tell how the name of the Security Role can be retrieved ? Thanks.
     
  • Verified answer
    Kalathiya Profile Picture
    2,456 Super User 2026 Season 1 on at
    Hello @AA-25110714-0
     
    Please try below code for get the security role names: 
     
    ClearCollect(
        colAssignedSecurityRoles,
        ForAll(
            LookUp(
                Users,
                'Primary Email' = User().Email
            ).'Security Roles (systemuserroles_association)',
            {RoleName: ThisRecord.Name}
        )
    )
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------
     
    📩 Need more help? Mention@Kalathiya anytime!
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard