Validating current user privileges on the client side


This post explains how to check the particular privilege available to a user in Power Apps. The post demonstrates the code that might be used to check the privilege of the current user. The article describes that there is a method deep inside the client global context that gives this information. The code can be used to convert this object to an array of objects that might be easily used for the validation. Once this conversion is performed, it's possible to check if the particular privilege is available and if it is available, what level of privilege the user has. The "depth" property of the received object returns the level of privilege of a user that can be used in the client-side code or code of Power Apps Control.


Article 21m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time