Skip to content

Commit 7471a5b

Browse files
FrostyApeOneFrostyApeOne
authored andcommitted
Added SetUserPermissionsRequest model
1 parent 7589729 commit 7471a5b

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System.Text.Json.Serialization;
2+
using GovUK.Dfe.CoreLibs.Contracts.ExternalApplications.Models.Response;
3+
4+
namespace GovUK.Dfe.CoreLibs.Contracts.ExternalApplications.Models.Request;
5+
6+
/// <summary>
7+
/// Request body for replacing a user's direct (user-level) permission grants.
8+
/// Does not affect permissions inherited from the user's role.
9+
/// </summary>
10+
public class SetUserPermissionsRequest
11+
{
12+
/// <summary>
13+
/// The complete set of user-level permission grants. Replaces all existing user-owned grants.
14+
/// </summary>
15+
[JsonPropertyName("permissions")]
16+
public IReadOnlyCollection<RolePermissionGrantDto> Permissions { get; set; }
17+
= Array.Empty<RolePermissionGrantDto>();
18+
}

0 commit comments

Comments
 (0)