mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 13:08:17 -05:00
26 lines
593 B
C#
26 lines
593 B
C#
using Bit.Core.AdminConsole.Entities;
|
|
|
|
namespace Bit.Scim.Models;
|
|
|
|
public class ScimGroupResponseModel : BaseScimGroupModel
|
|
{
|
|
public ScimGroupResponseModel()
|
|
: base(true)
|
|
{
|
|
Meta = new ScimMetaModel("Group");
|
|
}
|
|
|
|
public ScimGroupResponseModel(Group group)
|
|
: this()
|
|
{
|
|
Id = group.Id;
|
|
DisplayName = group.Name;
|
|
ExternalId = group.ExternalId;
|
|
Meta.Created = group.CreationDate;
|
|
Meta.LastModified = group.RevisionDate;
|
|
}
|
|
|
|
public Guid Id { get; set; }
|
|
public ScimMetaModel Meta { get; private set; }
|
|
}
|