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 / Get the list of user w...
Power Apps
Unanswered

Get the list of user with access to the App

(0) ShareShare
ReportReport
Posted on by 103

Hi,

 

I'm trying to list in the app the list of all users with access.

 

After some investigation, I found this connector. But I'm having difficulty making it happens.

Insite App, OnStart I add:

ClearCollect(AppUsers,

                                    PowerAppsforAdmins.GetAdminAppRoleAssignment("Organization ID","App ID").value

                   )

It loads the columns name for the collection but, with no data. (id,name,property,type)

 

Not sure if it's the wrong command to use or a problem with the implementation.

 

thanks

 

Categories:
I have the same question (0)
  • GarethPrisk Profile Picture
    2,828 on at

    That looks mostly correct. It is value, not values - BTW

    PowerAppsforAdmins.GetAdminAppRoleAssignment(
     "aa718629-6144-43a9-a86e-24115b6c4cb9",
     "dbd093fa-7521-4e70-bfc4-30f67ede0489"
    ).value

    Formula above will return a table of rows. The properties column, can be expanded to show the displayName of the shared object (user or group). Below would expand it to show the name in a label in a gallery or table.

    ThisItem.properties.principal.displayName

     

  • Wedlib Profile Picture
    103 on at

    sorry, my typo here. it's "value". I'm editing post.

     

    The problem is it doesn't load results to the Collection, just the fields

  • GarethPrisk Profile Picture
    2,828 on at
    ClearCollect(
     colUserRoles,
     PowerAppsforAdmins.GetAdminAppRoleAssignment(
     "aa718629-6144-43a9-a86e-24115b6c4cb9",
     "dbd093fa-7521-4e70-bfc4-30f67ede0489"
     ).value
    )

    This appears identical to yours. In my case, it is returning results into the collection. Is the app/environment you're using a valid app, with users/groups who have the app shared to them.

    GarethPrisk_0-1626371258315.png

     

  • Wedlib Profile Picture
    103 on at

    just to make sure, the function asks for "Environment ID" and "App ID" parameters.

    So, I need to use the "Environment ID" in the "Organization ID", that I get in the admin.powerplatform like below, right?

     

    Wedlib_0-1626381352955.png

     

  • Verified answer
    GarethPrisk Profile Picture
    2,828 on at

    Simple way to get both is to find the app in the list at https://make.powerapps.com

    Click on the ellipsis (...) and select 'Details'

    The URL has both the environment and app, if you want static values to test with.

    GarethPrisk_0-1626383754268.png

    You can get the app ID from the connector via other actions, but the environment URL is a bit trickier.

  • Wedlib Profile Picture
    103 on at

    Great! It was the environment id. got following your instruction and it's working now

    thank you so much!!

  • EversonRafael Profile Picture
    2 on at

    Dessa forma na Galeria, exibe apenas códigos, eu precisava que exibisse o nome dos usuários como você fez?

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