Esempio n. 1
0
 public ScimGroup(Group group)
 {
     Id          = group.Id.ToString();
     ExternalId  = group.ExternalId;
     DisplayName = group.Name;
     Meta        = new ScimResourceMetadata("Group");
 }
Esempio n. 2
0
 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");
 }
Esempio n. 3
0
 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");
 }