mirror of
https://github.com/bitwarden/server.git
synced 2025-04-25 06:42:22 -05:00

* feat: remove required for AccessAll and add xmldoc for usage restrictions, refs AC-1880 * feat: add validation for create group workflow wrt manage property, refs AC-1880 * feat: add validation for update group workflow wrt manage property, refs AC-1880 * feat: add validation for create and update member workflow wrt manage property, refs AC-1880 * feat: add validation for update collection workflow wrt manage property, refs AC-1880 * fix: flaky Public/GroupsControllerTests + more test coverage, refs AC-1880
27 lines
999 B
C#
27 lines
999 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Bit.Api.AdminConsole.Public.Models;
|
|
|
|
public abstract class GroupBaseModel
|
|
{
|
|
/// <summary>
|
|
/// The name of the group.
|
|
/// </summary>
|
|
/// <example>Development Team</example>
|
|
[Required]
|
|
[StringLength(100)]
|
|
public string Name { get; set; }
|
|
/// <summary>
|
|
/// Determines if this group can access all collections within the organization, or only the associated
|
|
/// collections. If set to <c>true</c>, this option overrides any collection assignments. If your organization is using
|
|
/// the latest collection enhancements, you will not be allowed to set this property to <c>true</c>.
|
|
/// </summary>
|
|
public bool? AccessAll { get; set; }
|
|
/// <summary>
|
|
/// External identifier for reference or linking this group to another system, such as a user directory.
|
|
/// </summary>
|
|
/// <example>external_id_123456</example>
|
|
[StringLength(300)]
|
|
public string ExternalId { get; set; }
|
|
}
|