--- title: "Set security settings" slug: "set-security-settings" updated: 2025-07-02T19:29:59Z published: 2025-07-02T19:29:59Z canonical: "developers.torq.io/set-security-settings" --- > ## Documentation Index > Fetch the complete documentation index at: https://developers.torq.io/llms.txt > Use this file to discover all available pages before exploring further. # Set security settings Post/v1alpha/security-config Sets security settings for the workspace, including session expiration, inactivity timeout, and SSO-only mode. You must be a workspace owner to modify the settings. SecurityHTTPType bearer Body parametersExpand Allobject settingsobject (v1alphaSecuritySettings) Security Settings represents the security settings for a workspace. You must be a workspace owner to modify the settings. session_expirationstring The sesssion expiration defines how long a session remains valid before requiring the user to reauthenticate their login. Any unsaved work will be saved. Options include: Never, 8 hours, 12 hours, 24 hours, 7 days, and 30 days. The default session expiration is 'Never'. inactivity_timeoutstring The period of inactivity after which the user will be logged out. If no activity is detected within this time frame, any unsaved work will be saved and the user will be automatically logged out. Options include: 30 minutes, 1 hour, 4 hours, 8 hours, 12 hours, and 24 hours. The default inactivity timeout is '12 hours'. sso_onlyboolean Defines the SSO mode for the workspace. Set to 'true' to prevent invitation of new local users to the workspace. Responses200 The security settings were set successfully. object 400 Invalid request format or parameters. object 401 Invalid bearer token. If you receive this message more than once try creating a new Client ID/Client Secret or generating a new bearer token. object 403 You don't have permission to access this resource. object