Monday 28 September 2020

Get User Privilege on a field - Dynamics 365 CE

 Hi Everyone,

Today I got a requirement to check whether the user has access to read the data on the field where field level security has been enabled and do some operations.

We can achieve this using getUserPrivilege() client API.

var fieldPrivileges = formContext.getAttribute("new_fieldsecurityfield").getUserPrivilege();

Result when user doesn't have permission.

Result when user have permission.

Hope this helps.

--
Happy 365'ing
Gopinath.

3 comments:

  1. This comment has been removed by the author.

    ReplyDelete

  2. Such a great and informative post, keep sharing in further to gain useful information. Thank you
    Microsoft Dynamics 365

    ReplyDelete
  3. This blog provides valuable insights into Dynamics 365 Finance and operations pricing uae. The platform's advanced financial and operational capabilities are crucial for businesses aiming to streamline processes and enhance profitability.

    ReplyDelete