Hello Experts,
I have given only the System Admin Security Role to the user. We have some custom Security Roles as well in the system.
what is weird thing is happening that when I retrieved the Security Roles using Javascript Code using context.userSettings.securityRoles OR Xrm.Page.context.getUserRoles() this method
then it is returning 2 extra Security Roles which user does not have. This is happening on Client Sandbox Org from yesterday. Also, these extra 2 Roles returning for All users. I have tried Checked/Unchecked Security Roles, Even then it is returning extra Roles. These 2 Extra Security Roles are static for all while calling JS method to getting Security Roles.
But I have checked the same JS code on my development org. It is returning proper Roles. Working properly on Development Org.
Thanks in Advance
Shrikant