0
獲得當前(登錄)用戶的安全角色從上下文很簡單:如何獲得其他用戶的安全角色在CRM 2013使用JavaScript
Xrm.Page.context.getUserRoles()
但我無法找到答案如何讓角色爲另一個用戶的Id或名稱?
獲得當前(登錄)用戶的安全角色從上下文很簡單:如何獲得其他用戶的安全角色在CRM 2013使用JavaScript
Xrm.Page.context.getUserRoles()
但我無法找到答案如何讓角色爲另一個用戶的Id或名稱?
您可以使用OData的獲得分配給用戶角色(從誰是當前登錄的用戶不同):
http://<server>/<org>/xrmservices/2011/OrganizationData.svc/SystemUserRolesSet?$filter=SystemUserId eq guid'<user guid>'
以類似的方式,你可能要檢查分配給團隊角色的用戶屬於