1
0
mirror of https://github.com/bitwarden/server synced 2026-01-04 01:23:25 +00:00
Files
server/src/Api/Models/Public/Request/MemberUpdateRequestModel.cs

22 lines
677 B
C#

using System.Collections.Generic;
using Bit.Core.Entities;
namespace Bit.Api.Models.Public.Request
{
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;
}
}
}