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
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:
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,
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
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,
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
WarrenBelz
146,743
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,089
Most Valuable Professional