
Announcements
Hi,
Can we determine whether a user is an owner or co-owner of an app and make the Administration tab/screen accessible only to them?
Hi @alvintriv ,
You can use below formula in OnVisible property of screen or OnSelect property of a button -
With({x: LookUp(
ForAll(
PowerAppsforMakers.GetAppRoleAssignment("<app id>").value,
{
User: properties.principal.email,
Role: properties.roleName
}
),
User = User().Email
).Role}, If(x="Owner", Navigate(AdminScreenName); Navigate(NormalScreenName)))