0
인증 된 사용자와 관련된 역할을 가져올 수 있지만 그룹은 가져올 수 없습니다. 그룹을 얻을 수있는 방법이 있습니까사용자가 Azman에서 연관된 그룹 목록을 얻는 방법은 무엇입니까?
WindowsIdentity userIdentity = HttpContext.Current.User.Identity as WindowsIdentity;
AzAuthorizationStoreClass azManStore = new AzAuthorizationStoreClass();
string storeConnectionString = ConfigurationManager.ConnectionStrings["<CONN STRING>"].ConnectionString;
azManStore.Initialize(0, storeConnectionString, null);
IAzApplication azApp = azManStore.OpenApplication("<APP NAME>", null);
ulong token = (ulong)userIdentity.Token;
IAzClientContext ctx = azApp.InitializeClientContextFromToken(token, null);
object roles = ctx.GetRoles(String.Empty);