1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-04 12:40:22 -05:00

[PM-16091] Add SsoExternalId to OrganizationUserDetailsResponseModel

This commit is contained in:
Rui Tome 2025-04-04 15:02:50 +01:00
parent 39ac93326d
commit d4df437818
No known key found for this signature in database
GPG Key ID: 526239D96A8EC066

View File

@ -67,10 +67,12 @@ public class OrganizationUserDetailsResponseModel : OrganizationUserResponseMode
public OrganizationUserDetailsResponseModel(
OrganizationUser organizationUser,
bool managedByOrganization,
string ssoExternalId,
IEnumerable<CollectionAccessSelection> collections)
: base(organizationUser, "organizationUserDetails")
{
ManagedByOrganization = managedByOrganization;
SsoExternalId = ssoExternalId;
Collections = collections.Select(c => new SelectionReadOnlyResponseModel(c));
}
@ -80,10 +82,12 @@ public class OrganizationUserDetailsResponseModel : OrganizationUserResponseMode
: base(organizationUser, "organizationUserDetails")
{
ManagedByOrganization = managedByOrganization;
SsoExternalId = organizationUser.SsoExternalId;
Collections = collections.Select(c => new SelectionReadOnlyResponseModel(c));
}
public bool ManagedByOrganization { get; set; }
public string SsoExternalId { get; set; }
public IEnumerable<SelectionReadOnlyResponseModel> Collections { get; set; }