0
我有一個電子郵件帳戶,它是一個安全組,其中很少有成員。我試圖找出該組的店主的電子郵件地址,但我一直無法弄清楚。獲取.NET Azure Active Directory組中的所有者
下面是源代碼
ActiveDirectoryClient activeDirectoryClient = new ActiveDirectoryClient(serviceRoot, async() => await Task.FromResult(accessToken));
var group = (Group)await activeDirectoryClient.Groups.Where(u => u.Mail == "[email protected]").ExecuteSingleAsync();.
var groupFetcher = activeDirectoryClient.Groups.GetByObjectId(group.ObjectId);
var membersResult = groupFetcher.Members.ExecuteAsync().Result;
var ownerResult = groupFetcher.Owners.ExecuteAsync().Result;
後,我執行此代碼,可以看我的小組成員但瓦特HY ownerResult變量始終是空? 如何檢索組的所有者?
謝謝你的工作! – user3587624