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.
Happy 365'ing
Gopinath.
This comment has been removed by the author.
ReplyDelete
ReplyDeleteSuch a great and informative post, keep sharing in further to gain useful information. Thank you
Microsoft Dynamics 365
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