Get Domain group membership in Provider Hosted App
Hi,

We are creating a provider hosted app where we need to hide some buttons base on the group membership. Our SharePoint is deployed on Azure and using ADFS.
It works fine till users are directly added to SharePoint group but i am stuck when we add the AD group this SharePoint group. Can not get the members of AD group.

Is it possible in Provider hosted app. I know there are options to do this Server side object model but not sure what options i have here.
June 23rd, 2015 9:53am

Hi Mohit,

Try the url :https://social.technet.microsoft.com/forums/sharepoint/en-US/4b355232-10e4-4b29-81af-ece6ef12a0c7/get-ad-domain-group-using-client-object-model

Thanks.

Free Windows Admin Tool Kit Click here and download it now
June 23rd, 2015 11:44pm

Hi,

Since it's provider hosted you can directly query AD for the 'AD group' members. From SharePoint Client Object model you can find if the SharePoint Group member is user or 'ad group'. If it's AD group you can query AD to find the members of the AD group.

June 24th, 2015 2:29am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics