public ScimGroup(Group group) { Id = group.Id.ToString(); ExternalId = group.ExternalId; DisplayName = group.Name; Meta = new ScimResourceMetadata("Group"); }
public ScimUser(OrganizationUser orgUser) { Id = orgUser.Id.ToString(); ExternalId = orgUser.ExternalId; UserName = orgUser.Email; Active = true; Emails = new List <ScimMultiValuedAttribute> { new ScimMultiValuedAttribute { Type = "work", Value = orgUser.Email } }; Meta = new ScimResourceMetadata("User"); }
public ScimUser(OrganizationUserUserDetails userDetails) { Id = userDetails.Id.ToString(); ExternalId = userDetails.ExternalId; UserName = userDetails.Email; Name = new ScimName { Formatted = userDetails.Name }; DisplayName = userDetails.Name; Active = true; Emails = new List <ScimMultiValuedAttribute> { new ScimMultiValuedAttribute { Type = "work", Value = userDetails.Email } }; Meta = new ScimResourceMetadata("User"); }