Gets users defined in the system. Use limit=x&offset=n to paginate.
An optional email filter matches the trimmed value exactly and case-insensitively
against active identity address records. Filtering happens before paging and may
return multiple users because email is not a unique identifier.
To include email, access and roles, use following parameters
&includeEmailAddresses=true&includeUserAccess=true&includeRoles=true
Parameters
Name
In
Description
Required
Type
limit
query
Limit reponse to x rows. Default: 100
integer
offset
query
offset reponse rows
integer
includeEmailAddresses
query
Whether active email addresses are included in the response. The email filter does not change the default.
boolean
includeUserAccess
query
bool to include or exclude user access information
boolean
includeRoles
query
bool to include or exclude roles assigned to user
boolean
email
query
Optional exact email filter. Leading and trailing whitespace is ignored.
string
Responses
Code
Returns
Type
200
Matching users, or an empty array when an email filter has no matches
Create a new WebsakUser from JSON object provided.Returns JSON object representing created user.
Description
Creates a Websak user based on the JSON data provided in the request.
UserAccesses can be included to create the primary user's initial
IdentityServer login mappings in the same operation. The returned
externalId is generated by the service unless ExistingIdentityServerUserId
links this new user to an existing IdentityServer identity in the configured tenant.
ExistingIdentityServerUserId cannot be combined with UserAccesses or IsSecondaryUser.
ExternalDepartmentID - External department id used for department lookup (Gid_Div1).
DepartmentCode - Department code => value will be matched against Department unit code. ExternalDepartmentID is then disregarded.
TilgangsOppsettID – ID for template for the user being created, the user gets access and roles based on this template.
LookupField - Name of field that is used to lookup existing user. Possible values: Id (default) and Code.
Parameters: JSON Data object Acos.Websak.UserAPI.Core.Models.UserRequest
Parameters
Name
In
Description
Required
Type
feilVedEksisterende
query
When true (default), returns 409 Conflict if user already exists instead of routing to PUT.