2022-06-29 19:46:41 -04:00
|
|
|
|
using Bit.Core.Entities;
|
2019-03-05 23:24:14 -05:00
|
|
|
|
|
2021-12-14 15:05:07 +00:00
|
|
|
|
namespace Bit.Api.Models.Public.Request;
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2019-03-05 23:24:14 -05:00
|
|
|
|
public class MemberUpdateRequestModel : MemberBaseModel
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The associated collections that this member can access.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public IEnumerable<AssociationWithPermissionsRequestModel> Collections { get; set; }
|
2022-08-29 15:53:48 -04:00
|
|
|
|
|
2019-03-05 23:24:14 -05:00
|
|
|
|
public virtual OrganizationUser ToOrganizationUser(OrganizationUser existingUser)
|
2022-08-29 15:53:48 -04:00
|
|
|
|
{
|
2019-03-05 23:24:14 -05:00
|
|
|
|
existingUser.Type = Type.Value;
|
|
|
|
|
|
existingUser.AccessAll = AccessAll.Value;
|
|
|
|
|
|
existingUser.ExternalId = ExternalId;
|
|
|
|
|
|
return existingUser;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|