Tuesday, March 25, 2014

Get users and groups from people/group column in sharepoint.

SPFieldUserValueCollection objUserFieldValueCol = new SPFieldUserValueCollection(properties.Web, item["users"].ToString());
for (int i = 0; i < objUserFieldValueCol.Count; i++)
{
SPFieldUserValue singlevalue = objUserFieldValueCol[i];
if (singlevalue.User == null)
{
//User
}
else
{
//All users from Group.
}
}

Give Read Permission for SharePoint Add-in for Azure AD Send Mail to Office 365 Domain Group users.

Below are the Steps for Send Mail to Office 365 Domain Group or AD Group users from Provider Hosted ADD-IN. For this we needs to Give Permi...