How to Enable Disable Buttons in a Canvas Power App based on Logged in User

Опубликовано: 25 Февраль 2026
на канале: Richard Burdes
1,287
0

This tutorial covers how you can use the O365 User Profile or Entra ID Security Group Membership to enable buttons to be enabled or disabled.

In this tutorial we show how to set a variable to get the logged in user and how to make a collection of security group members to use in your app to compare against a logged in user and then take the action you want.

Fx formulas you may want to use.

Entra ID Group Sort(ClearCollect(MyDemoUserGroup, Office365Groups.ListGroupMembers("f-your-entra-Id group-guid-4").value), displayName, SortOrder.Ascending);

O365 user profile Set(varUserProfile, Office365Users.MyProfileV2());