cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tejaswini1234
Level: Powered On

how do i know owner of sharepoint site in power apps

i have sharepoint list  in which there are some users are owners , how do i know wether user is owner in sharepoint or not in power apps

4 REPLIES 4
Tejaswini1234
Level: Powered On

Re: how do i know owner of sharepoint site in power apps

1) i have SharePoint list which is customized using power apps

2) user who are in sharepoint site owner group should see some field others not 

3) so i know wether log in user is owner of sharepoint site in power app or not 

Community Support Team
Community Support Team

Re: how do i know owner of sharepoint site in power apps

Hi @Tejaswini1234 ,

Do you want to detect the owner of a SP List within a canvas app?

 

If you want to detect the owner of a SP List within a canvas app, I afraid that there is no way to achieve your needs in PowerApps currently.

Currently, there is no functions supported within PowerApps to get the Owners of a SP list. If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Tejaswini1234
Level: Powered On

Re: how do i know owner of sharepoint site in power apps

Is there any another way to acheive this?

I want to compare current login user with owner of sharepoint site in power apps ,, when sharepoint list is customized using power apps.

 

 

Thanks

Community Support Team
Community Support Team

Re: how do i know owner of sharepoint site in power apps

Hi @Tejaswini1234 ,

Based on the needs that you mentioned, I afraid that there is no way to achieve your needs in PowerApps currently.

 

As an alternative solution, you could consider save the Display name and email address of all the Owners of your SP List into a separated SP list (or other data source, e.g. Excel table) manually. The data structure of the separated List should be as below:2.JPG

 

Then within your app, you could check if the current login user is a owner of your SP list data source using the following formula:

If(
    User().DisplayName in 'YourSeparatedOwnerList'.DisplayName,
    true,     /* <-- Is a Owner */
    false    /* <-- Is not a Owner*/
)

Or

If(
    User().Email in 'YourSeparatedOwnerList'.Email,
    true,     /* <-- Is a Owner */
    false    /* <-- Is not a Owner*/
)

Please consider take a try with above alternative solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 155 members 3,197 guests
Recent signins:
Please welcome our newest community members: