Originally posted on Ajit Patra:
Many times we come across requirements such as show/hide ribbon buttons based on logged in user’s security role. Earlier, we used to get security roles of logged in user at client side using Xrm.Utility.getGlobalContext().userSettings.securityRoles which used to return array of GUID value of each security role. Now that it’s deprecated,…
Continue Reading Nishant Rana’s Article on their blog
D365 CE: Get Logged in User’s Security Roles using JavaScript
Ajit Patra Many times we come across requirements such as show/hide ribbon buttons based on logged in user’s security role. Earlier, we used to get security roles of logged in user at client side using Xrm.Utility.getGlobalContext().userSettings.securityRoles which used to return array of GUID value of each security role.
Blog Syndicated with Nishant Rana’s Permission
More About This Author
Array
- Dyn365CE12 March 2024Fixed – The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters exception in Plugin (Dataverse / Dynamics 365)
- Dyn365CE11 March 2024The ‘operationOptions’ property is not allowed on the trigger when the workflow contains actions of type ‘OpenApiConnection- Power Automate
- Dyn365CE6 March 2024Force Sync users from Azure AD Security Group / Microsoft 365 Group to Dataverse environment – Power Automate
- Dyn365CE5 March 2024ILMerge / Dependent Assemblies in Plugin – System.IO.FileNotFoundException: Could not load file or assembly ‘System.Memory.Data’ – Dynamics 365 / Dataverse