2019-03-05 23:24:14 -05:00
|
|
|
|
using System.Collections.Generic;
|
2022-01-11 10:40:51 +01: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
|
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; }
|
|
|
|
|
|
|
|
|
|
|
|
public virtual OrganizationUser ToOrganizationUser(OrganizationUser existingUser)
|
|
|
|
|
|
{
|
|
|
|
|
|
existingUser.Type = Type.Value;
|
|
|
|
|
|
existingUser.AccessAll = AccessAll.Value;
|
|
|
|
|
|
existingUser.ExternalId = ExternalId;
|
|
|
|
|
|
return existingUser;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|