50 authenticationContext,
120 .OrderBy(
x =>
x.Id))),
virtual ? long Id
The ID of the entity.
For editing a given user.
Represents an error message returned by the server.
Represents a paginated set of models.
Routes to a server actions.
const string User
The user controller.
const string List
The postfix for list operations.
Base Controller for API functions.
Helper for returning paginated models.
ApiController for managing Users.
async ValueTask< IActionResult > GetId(long id, CancellationToken cancellationToken)
Get a specific User.
ValueTask< IActionResult > Update([FromBody] UserUpdateRequest model, CancellationToken cancellationToken)
Update a User.
ValueTask< IActionResult > List([FromQuery] int? page, [FromQuery] int? pageSize, CancellationToken cancellationToken)
List all Users in the server.
UserController(IDatabaseContext databaseContext, IAuthenticationContext authenticationContext, IRestAuthorityInvoker< IUserAuthority > userAuthority, ILogger< UserController > logger, IApiHeadersProvider apiHeaders)
Initializes a new instance of the UserController class.
readonly IRestAuthorityInvoker< IUserAuthority > userAuthority
The IRestAuthorityInvoker<TAuthority> for the IUserAuthority.
ValueTask< IActionResult > Read(CancellationToken cancellationToken)
Get information about the current User.
ValueTask< IActionResult > Create([FromBody] UserCreateRequest model, CancellationToken cancellationToken)
Create a new User.
User User
The authenticated user.
ulong GetRight(RightsType rightsType)
Get the value of a given rightsType .The value of rightsType . Note that if InstancePermissionSet is ...
Invokes TAuthority methods and generates IActionResult responses.
IAuthority for managing Users.
IQueryable< User > Queryable(bool includeJoins)
Gets all registered Users.
ValueTask< AuthorityResponse< User > > Update(UserUpdateRequest updateRequest, CancellationToken cancellationToken)
Updates a User.
ValueTask< AuthorityResponse< User > > Read(CancellationToken cancellationToken)
Gets the currently authenticated user.
ValueTask< AuthorityResponse< User > > Create(UserCreateRequest createRequest, bool? needZeroLengthPasswordWithOAuthConnections, CancellationToken cancellationToken)
Creates a User.
For creating and accessing authentication contexts.
@ Read
User can read all chat bot properties except Models.Internal.ChatBotSettings.ConnectionString.
@ List
User may list files if the Models.Instance allows it.
RightsType
The type of rights a model uses.
AdministrationRights
Administration rights for the server.