Get Current User Security Roles Using JavaScript In Microsoft Dynamics Crm

  if you want to get logged in  user security roles using JavaScript client api can you check code below.

  below getSecurityRolesofCurrentUser function will return roles array.




 add below code to your script file and call the function getSecurityRolesofCurrentUser.  



Comments

Popular posts from this blog

Hide +New Record button in Dynamics 365 lookup Field

Hide New Button In Lookup Field In Microsoft Dynamics 365 Using Javascript