0

Description:

Currently, the User() function is not supported for use in Power Fx when defining command visibility rules in model-driven apps. This limitation prevents developers from easily showing or hiding buttons based on the current user's identity, which is a common and important requirement in real-world applications.

Scenario:

We are working on a model-driven app where certain command buttons should only be visible to specific users or roles. In canvas apps, this is achievable via the User() function in Power Fx. However, in model-driven apps, this functionality is not available when configuring command bar visibility using Power Fx.

Grace Vu from Microsoft Support confirmed that this is currently a by-design limitation and recommended submitting this feature request via the Ideas portal.

Suggestion:

Please consider enabling support for the User() function within Power Fx for use in model-driven app command visibility rules. This would greatly enhance the flexibility and control app makers have over UI customization without resorting to custom JavaScript or Ribbon Workbench solutions, which require significantly more effort and expertise.

Benefits:

  • Simplifies user-specific UI customization.
  • Aligns capabilities between canvas apps and model-driven apps.
  • Reduces the need for custom code, lowering development and maintenance overhead.
  • Makes Power Fx a more consistent and powerful tool across the Power Platform.

Thank you for considering this enhancement.

Category: General
STATUS DETAILS
New