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 / Problem: List users wi...
Power Apps
Answered

Problem: List users with co-owner permission instead user permission

(0) ShareShare
ReportReport
Posted on by 183

Hello PA-Community,

 

i have a problem with one of my apps. As you all now, you can release your app to different people. You can choose between "USER" and "CO-OWNER".

In one of my apps i have the following Code:

 

ClearCollect(roleAppAssignments;PowerAppsforAdmins.GetAdminAppRoleAssignment(SelectedBapEnvronment.name;Gallery_Apps.Selected.name).value);;

 

With that line, i show all user who have permission as USER for the one app. Now my problem is, that i want to part it with user with USER-permission and users with CO-OWNER-permission. How can i only show the users with CO-OWNER permission instead of users with USER-permission.

 

Screenshot is in german, but if someone need it i can translate it in english.

 

Hope someone can help me...

 

 

Thank you all and best regards,

CanD

2020-10-28 12_52_14-Power Apps.png
Categories:
  • Verified answer
    rsaikrishna Profile Picture
    3,703 on at

    @CanD 

     

    Give a try with the following formula:

     

    ClearCollect(roleAppAssignments,ForAll(PowerAppsforAdmins.GetAdminAppRoleAssignment("<Environment ID>","<App ID>").value.properties,{DisplayName: ThisRecord.properties.principal.displayName, Role: ThisRecord.properties.roleName}));

     

    For my default environment and an app which has one owner and a user, I got the following values into the collection:

    rsaikrishna_0-1603888682375.png

    Regards

    Krishna Rachakonda

    If this reply helped you to solve the issue, please mark the post as Accepted Solution. Marking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

     

  • CanD Profile Picture
    183 on at

    Hi @rsaikrishna ,

    you´re a genius 👏👏  It worked, thank you so much.

     

    Can i ask you anything? Where can i find / Do you know some good internet pages or youtube channel where i can lern something like these administrativ thing for example the admin Connectors, PowerPlattform Connector and Office365User connectors?

     

    Best regards,

    CanD

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard