Get All Administrators' Name in Dynamics CRM
This post is to show how you can get names of all CRM Administrators through JS in Dynamics CRM To get the names of all the admins, first of all, we need to query on 'Role' entity where name equals 'System Administrator' and get the 'Full Name' of the user from the user-role relationship. Following code depicts the same. function getUserID() { var crmURL = Xrm.Page.context.getClientUrl(); $.ajax({ type: "GET", contentType: "application/json; charset=utf-8", datatype: "json", url: crmURL + "/XRMServices/2011/OrganizationData.svc/RoleSet?$select=systemuserroles_association/FullName&$expand=systemuserroles_association&$filter=Name eq 'System Administrator'", beforeSend: function (XMLHttpRequest) { XMLHttpRequest.setRequestHeader("Accept", "application/json...