Hello All,
This is regarding our implementation of a Group Managed Service Account (gMSA) in our latest SAS Viya environment.
We have created a service account in Entra and provisioned it to SAS via SCIM for scheduling purposes. Based on this, we are planning to use a gMSA-style approach where a group of users from our OPS team can schedule jobs using this service account.
sas-viya credentials domains create --domain-id Scheduling_OPS_TokenAuth --type oauth2.0 sas-viya credentials groups create --domain-id Scheduling_OPS_TokenAuth --identity-id OPS_Schedule_Team --allowed-client sas.scheduler --allowed-client sas.jobExecution --allowed-client sas.jobFlowScheduling
Going forward, we will not be logging in interactively using the service account. Instead, OPS team members will schedule jobs using it via the gMSA approach.
My question is regarding the refresh token lifecycle:
If we do not use the gMSA approach and instead log in interactively with the service account to schedule jobs, would we face the same issue? For example, if a job is scheduled daily and no one logs in again for an extended period, will the job continue to run only until the refresh token expires?
Any clarification or best practices around this setup would be greatly appreciated. Thanks in advance.
Thanks @gwootton for your response.
Is there any way to check whether new tokens are being acquired and refreshed internally?
Thanks you.
But I don't think auto token refresh is happening and stored internally on credentials service.
I have created a domain last week for gMSA purpose but when I tried to execute the job today using Run as feature via gMSA, I'm getting this failure.
Failed to obtain a valid credential. Contact your system administrator to check the status of the credential in the domain Scheduling_OPS_TokenAuth.
path: /scheduler/jobs
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
Learn how to explore data assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.