/// <summary> /// Return /// </summary> /// <param name="OID"></param> /// <returns></returns> public async Task <GraphGroupsModel> GetUserGroup(string OID) { if (string.IsNullOrEmpty(OID)) { throw new Exception("User object Id is null or empty"); } string JSON = await SendGraphRequest($"/users/{OID}/memberOf", null, null, HttpMethod.Get); GraphGroupsModel groups = GraphGroupsModel.Parse(JSON); return(groups); }