File tree Expand file tree Collapse file tree
src/GovUK.Dfe.CoreLibs.Contracts/ExternalApplications/Models/Request Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments