Auth settings
Endpoints
Returns the authentication settings for the tenant, including the session inactivity timeout and maximum session lifespan. If no custom values have been saved, the response reflects tenant-wide defaults with isDefault set to true. The user must be assigned the TenantAdmin role.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
Responses
200
Authentication settings retrieved successfully.
- application/jsonobject
The authentication settings for a tenant, controlling user session duration and inactivity behavior.
application/json properties
- idstring
The unique identifier for the authentication settings.
- tenantIdstringRequired
The tenant unique identifier associated with the authentication settings.
- isDefaultboolean
trueif the authentication settings are using tenant-wide defaults. No custom values have been saved for this tenant. - maxUserSessionLifespanMinutesintegerRequired
Maximum total lifespan for a user session, in minutes. Sessions are invalidated after this duration regardless of activity.
- userSessionInactivityTimeoutMinutesintegerRequired
Maximum inactivity period for a user session, in minutes. Sessions that have been idle for longer than this value are invalidated.
-
401
Not authorized.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
An array of errors related to the operation.
errors properties
- codestringRequired
The error code.
- metaobject
Additional properties relating to the error.
- titlestringRequired
Summary of the problem.
- detailstring
A human-readable explanation specific to this occurrence of the problem.
- sourceobject
References to the source of the error.
source properties
- pointerstring
A JSON Pointer to the property that caused the error.
- parameterstring
The URI query parameter that caused the error.
-
-
- traceIdstring
A unique identifier for tracing the error.
-
403
The authenticated user does not have the TenantAdmin role required to read authentication settings.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
An array of errors related to the operation.
errors properties
- codestringRequired
The error code.
- metaobject
Additional properties relating to the error.
- titlestringRequired
Summary of the problem.
- detailstring
A human-readable explanation specific to this occurrence of the problem.
- sourceobject
References to the source of the error.
source properties
- pointerstring
A JSON Pointer to the property that caused the error.
- parameterstring
The URI query parameter that caused the error.
-
-
- traceIdstring
A unique identifier for tracing the error.
-
404
Authentication settings not found.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
An array of errors related to the operation.
errors properties
- codestringRequired
The error code.
- metaobject
Additional properties relating to the error.
- titlestringRequired
Summary of the problem.
- detailstring
A human-readable explanation specific to this occurrence of the problem.
- sourceobject
References to the source of the error.
source properties
- pointerstring
A JSON Pointer to the property that caused the error.
- parameterstring
The URI query parameter that caused the error.
-
-
- traceIdstring
A unique identifier for tracing the error.
-
429
Request has been rate limited.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
An array of errors related to the operation.
errors properties
- codestringRequired
The error code.
- metaobject
Additional properties relating to the error.
- titlestringRequired
Summary of the problem.
- detailstring
A human-readable explanation specific to this occurrence of the problem.
- sourceobject
References to the source of the error.
source properties
- pointerstring
A JSON Pointer to the property that caused the error.
- parameterstring
The URI query parameter that caused the error.
-
-
- traceIdstring
A unique identifier for tracing the error.
-
500
Internal server error.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
An array of errors related to the operation.
errors properties
- codestringRequired
The error code.
- metaobject
Additional properties relating to the error.
- titlestringRequired
Summary of the problem.
- detailstring
A human-readable explanation specific to this occurrence of the problem.
- sourceobject
References to the source of the error.
source properties
- pointerstring
A JSON Pointer to the property that caused the error.
- parameterstring
The URI query parameter that caused the error.
-
-
- traceIdstring
A unique identifier for tracing the error.
-
// qlik-api has not implemented support for `GET /api/core/auth-settings` yet.// In the meantime, you can use fetch like this:
const response = await fetch( '/api/core/auth-settings', { method: 'GET', headers: { 'Content-Type': 'application/json', }, },)This API is not included yet in qlik-clicurl "https://{tenant}.{region}.qlikcloud.com/api/core/auth-settings" \-H "Authorization: Bearer <access_token>"Example Response
{ "id": "507f191e810c19729de860ea", "tenantId": "644fd58b846d649c82eba436", "isDefault": false, "maxUserSessionLifespanMinutes": 1440, "userSessionInactivityTimeoutMinutes": 60}Updates one or more authentication settings for the tenant using JSON Patch (RFC 6902). Supports replace operations on /userSessionInactivityTimeoutMinutes and /maxUserSessionLifespanMinutes. The value for maxUserSessionLifespanMinutes must be a whole number of hours (divisible by 60). The user must be assigned the TenantAdmin role.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
Request Body
RequiredAn array of JSON Patch operations to apply to the authentication settings.
- application/jsonarray of objects
An array of JSON Patch documents for authentication settings.
application/json properties
- opstringRequired
The operation to be performed.
Can be one of: "replace"
- pathstringRequired
A JSON Pointer to the authentication settings field.
Can be one of: "/userSessionInactivityTimeoutMinutes""/maxUserSessionLifespanMinutes"
- valueintegerRequired
Integer value in minutes to set for the targeted authentication settings field. For
maxUserSessionLifespanMinutes, the value must be a whole number of hours (divisible by 60).
-
Responses
200
Authentication settings updated successfully.
- application/jsonobject
The authentication settings for a tenant, controlling user session duration and inactivity behavior.
application/json properties
- idstring
The unique identifier for the authentication settings.
- tenantIdstringRequired
The tenant unique identifier associated with the authentication settings.
- isDefaultboolean
trueif the authentication settings are using tenant-wide defaults. No custom values have been saved for this tenant. - maxUserSessionLifespanMinutesintegerRequired
Maximum total lifespan for a user session, in minutes. Sessions are invalidated after this duration regardless of activity.
- userSessionInactivityTimeoutMinutesintegerRequired
Maximum inactivity period for a user session, in minutes. Sessions that have been idle for longer than this value are invalidated.
-
400
Invalid request body.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
An array of errors related to the operation.
errors properties
- codestringRequired
The error code.
- metaobject
Additional properties relating to the error.
- titlestringRequired
Summary of the problem.
- detailstring
A human-readable explanation specific to this occurrence of the problem.
- sourceobject
References to the source of the error.
source properties
- pointerstring
A JSON Pointer to the property that caused the error.
- parameterstring
The URI query parameter that caused the error.
-
-
- traceIdstring
A unique identifier for tracing the error.
-
401
Not authorized.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
An array of errors related to the operation.
errors properties
- codestringRequired
The error code.
- metaobject
Additional properties relating to the error.
- titlestringRequired
Summary of the problem.
- detailstring
A human-readable explanation specific to this occurrence of the problem.
- sourceobject
References to the source of the error.
source properties
- pointerstring
A JSON Pointer to the property that caused the error.
- parameterstring
The URI query parameter that caused the error.
-
-
- traceIdstring
A unique identifier for tracing the error.
-
403
The authenticated user does not have the TenantAdmin role required to update authentication settings.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
An array of errors related to the operation.
errors properties
- codestringRequired
The error code.
- metaobject
Additional properties relating to the error.
- titlestringRequired
Summary of the problem.
- detailstring
A human-readable explanation specific to this occurrence of the problem.
- sourceobject
References to the source of the error.
source properties
- pointerstring
A JSON Pointer to the property that caused the error.
- parameterstring
The URI query parameter that caused the error.
-
-
- traceIdstring
A unique identifier for tracing the error.
-
404
Authentication settings not found.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
An array of errors related to the operation.
errors properties
- codestringRequired
The error code.
- metaobject
Additional properties relating to the error.
- titlestringRequired
Summary of the problem.
- detailstring
A human-readable explanation specific to this occurrence of the problem.
- sourceobject
References to the source of the error.
source properties
- pointerstring
A JSON Pointer to the property that caused the error.
- parameterstring
The URI query parameter that caused the error.
-
-
- traceIdstring
A unique identifier for tracing the error.
-
429
Request has been rate limited.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
An array of errors related to the operation.
errors properties
- codestringRequired
The error code.
- metaobject
Additional properties relating to the error.
- titlestringRequired
Summary of the problem.
- detailstring
A human-readable explanation specific to this occurrence of the problem.
- sourceobject
References to the source of the error.
source properties
- pointerstring
A JSON Pointer to the property that caused the error.
- parameterstring
The URI query parameter that caused the error.
-
-
- traceIdstring
A unique identifier for tracing the error.
-
500
Internal server error.
- application/jsonobject
The error response object describing the error from the handling of an HTTP request.
application/json properties
- errorsarray of objects
An array of errors related to the operation.
errors properties
- codestringRequired
The error code.
- metaobject
Additional properties relating to the error.
- titlestringRequired
Summary of the problem.
- detailstring
A human-readable explanation specific to this occurrence of the problem.
- sourceobject
References to the source of the error.
source properties
- pointerstring
A JSON Pointer to the property that caused the error.
- parameterstring
The URI query parameter that caused the error.
-
-
- traceIdstring
A unique identifier for tracing the error.
-
// qlik-api has not implemented support for `PATCH /api/core/auth-settings` yet.// In the meantime, you can use fetch like this:
const response = await fetch( '/api/core/auth-settings', { method: 'PATCH', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify([ { op: 'replace', path: '/userSessionInactivityTimeoutMinutes', value: 60, }, { op: 'replace', path: '/maxUserSessionLifespanMinutes', value: 1440, }, ]), },)This API is not included yet in qlik-clicurl "https://{tenant}.{region}.qlikcloud.com/api/core/auth-settings" \-X PATCH \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '[{"op":"replace","path":"/userSessionInactivityTimeoutMinutes","value":60},{"op":"replace","path":"/maxUserSessionLifespanMinutes","value":1440}]'Example Response
{ "id": "507f191e810c19729de860ea", "tenantId": "644fd58b846d649c82eba436", "isDefault": false, "maxUserSessionLifespanMinutes": 1440, "userSessionInactivityTimeoutMinutes": 60}