Support user role update (#478)

This commit is contained in:
Misha Bragin
2022-09-23 14:18:42 +02:00
committed by GitHub
parent 68ff97ba84
commit af69a48745
4 changed files with 31 additions and 7 deletions

View File

@@ -47,16 +47,16 @@ components:
UserRequest:
type: object
properties:
role:
description: User's NetBird account role
type: string
auto_groups:
description: Groups to auto-assign to peers registered by this user
type: array
items:
type: string
required:
- name
- type
- expires_in
- revoked
- role
- auto_groups
PeerMinimum:
type: object

View File

@@ -376,6 +376,9 @@ type User struct {
type UserRequest struct {
// Groups to auto-assign to peers registered by this user
AutoGroups []string `json:"auto_groups"`
// User's NetBird account role
Role string `json:"role"`
}
// PostApiGroupsJSONBody defines parameters for PostApiGroups.