Skip to main content

SAS Viya Connection Profile

Profile Anatomy

A SAS Viya connection profile includes the following parameters:

"connectionType": "rest"

NameDescriptionAdditional Notes
endpointURL for the SAS Viya server. An example is https://example.sas.com.Appears when hovering over the status bar.
contextContext for Compute ServerPlease see SAS Documentation for more information.
clientIdRegistered Client ID for SAS ViyaPlease contact your SAS administrator. authorization_code and refresh_token grant types are required.
Leave blank for Viya4 2022.11 and later.
clientSecretRegistered Client Secret for SAS ViyaPlease contact your SAS administrator.
Leave blank for Viya4 2022.11 and later.

Depending on your SAS Viya version, the values for the prompts differ slightly.

  • For SAS Viya 2022.11 and later, you can leave Client ID and Client Secret prompts empty and simply press Enter. (The built-in Client ID vscode will be used.)

  • For SAS Viya 2022.10 and before (including SAS Viya 3.5), you need to provide a Client ID and secret.

For more information about Client IDs and the authentication process, please see the blog post Authentication to SAS Viya: a couple of approaches. A SAS administrator can follow the Steps 1 and 2 in the post to register a new client.