<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SAS Viya gMSA Scheduling and Refresh Token Behavior Clarification in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-gMSA-Scheduling-and-Refresh-Token-Behavior/m-p/987311#M30816</link>
    <description>Refresh tokens by default are valid for 14 days (&lt;A href="https://go.documentation.sas.com/doc/en/sasadmincdc/v_075/calconfigref/p1tat3guv9i2g5n1kktrzbprntog.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/sasadmincdc/v_075/calconfigref/p1tat3guv9i2g5n1kktrzbprntog.htm&lt;/A&gt;), so even if the token wasn't refreshing it would still be valid. You may want to look in the logs for credentials and scheduler services for more details on the failure, or engage SAS Technical Support.</description>
    <pubDate>Tue, 05 May 2026 17:49:43 GMT</pubDate>
    <dc:creator>gwootton</dc:creator>
    <dc:date>2026-05-05T17:49:43Z</dc:date>
    <item>
      <title>SAS Viya gMSA Scheduling and Refresh Token Behavior Clarification</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-gMSA-Scheduling-and-Refresh-Token-Behavior/m-p/987051#M30807</link>
      <description>&lt;P data-end="373" data-start="259"&gt;&lt;FONT size="2"&gt;Hello All,&lt;/FONT&gt;&lt;/P&gt;
&lt;P data-end="373" data-start="259"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="373" data-start="259"&gt;&lt;FONT size="2"&gt;This is regarding our implementation of a Group Managed Service Account (gMSA) in our latest SAS Viya environment.&lt;/FONT&gt;&lt;/P&gt;
&lt;P data-end="373" data-start="259"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="627" data-start="375"&gt;&lt;FONT size="2"&gt;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.&lt;/FONT&gt;&lt;/P&gt;
&lt;H3 data-end="647" data-start="629" data-section-id="5hh6du"&gt;&lt;FONT size="2"&gt;Current setup:&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL data-end="973" data-start="648"&gt;
&lt;LI data-end="750" data-start="648" data-section-id="1k1yekv"&gt;&lt;FONT size="2"&gt;Created a service account and added it to a custom group: “Service Account User for Schedule”&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI data-end="831" data-start="751" data-section-id="vknxi5"&gt;&lt;FONT size="2"&gt;Created an Entra ID group: OPS_Schedule_Team and added relevant members&amp;nbsp; and then provisioned to SAS&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI data-end="973" data-start="832" data-section-id="10t8xtm"&gt;&lt;FONT size="2"&gt;Logged in via CLI using the service account and executed the following commands to create the authentication domain and store credentials:&lt;/FONT&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;FONT size="2"&gt;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&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI data-end="1441" data-start="1282" data-section-id="164l7hy"&gt;&lt;FONT size="2"&gt;The domain was created successfully, and I can see an entry in the credentials store for this authentication domain with identity as OPS_Schedule_Team&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI data-end="1627" data-start="1442" data-section-id="wvq6g2"&gt;&lt;FONT size="2"&gt;In SAS Environment Manager, users in the OPS team are able to select the service account under the “Run as” option when scheduling jobs. Everything is working as expected so far.&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P data-end="1801" data-start="1643"&gt;&lt;FONT size="2"&gt;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.&lt;/FONT&gt;&lt;/P&gt;
&lt;P data-end="1801" data-start="1643"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="1860" data-start="1803"&gt;&lt;FONT size="2"&gt;My question is regarding the refresh token lifecycle:&lt;/FONT&gt;&lt;/P&gt;
&lt;P data-end="1860" data-start="1803"&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL data-end="2536" data-start="1862"&gt;
&lt;LI data-end="2044" data-start="1862" data-section-id="vherz3"&gt;&lt;FONT size="2"&gt;Since we are not logging in interactively with the service account, will scheduled jobs continue to run only until the refresh token remains valid? Is this understanding correct?&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI data-end="2185" data-start="2045" data-section-id="sc8qqp"&gt;&lt;FONT size="2"&gt;If the refresh token expires, what is the recommended way to automate token renewal for the service account without manual intervention?&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI data-end="2185" data-start="2045" data-section-id="sc8qqp"&gt;&lt;FONT size="2"&gt;I came across this document:&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/SAS-Viya-2023-07-Run-As-Authentication-Update/ta-p/893085" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/SAS-Viya-2023-07-Run-As-Authentication-Update/ta-p/893085&lt;/A&gt;&amp;nbsp;It mentions a scheduled job for automatic token rotation, but it appears to apply only up to the 2023.11 release. We are currently on the 2026.03 release—has this approach changed in newer versions?&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 data-end="2567" data-start="2538" data-section-id="1kedncx"&gt;&lt;FONT size="2"&gt;Additional clarification:&lt;/FONT&gt;&lt;/H3&gt;
&lt;P data-end="2865" data-start="2568"&gt;&lt;FONT size="2"&gt;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?&lt;/FONT&gt;&lt;/P&gt;
&lt;P data-end="2865" data-start="2568"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="2950" data-start="2867"&gt;&lt;FONT size="2"&gt;Any clarification or best practices around this setup would be greatly appreciated.&amp;nbsp;&lt;/FONT&gt;&lt;FONT size="2"&gt;Thanks in advance.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2026 09:25:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-gMSA-Scheduling-and-Refresh-Token-Behavior/m-p/987051#M30807</guid>
      <dc:creator>freshstarter</dc:creator>
      <dc:date>2026-05-01T09:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya gMSA Scheduling and Refresh Token Behavior Clarification</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-gMSA-Scheduling-and-Refresh-Token-Behavior/m-p/987177#M30812</link>
      <description>Both the scheduler service and credentials service maintain the validity of their stored refresh tokens by acquiring new ones periodically, so in either case you should not need to take any action and the functionality to schedule new jobs using a group-managed service account and the running of existing jobs should continue indefinitely.</description>
      <pubDate>Mon, 04 May 2026 18:45:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-gMSA-Scheduling-and-Refresh-Token-Behavior/m-p/987177#M30812</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2026-05-04T18:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya gMSA Scheduling and Refresh Token Behavior Clarification</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-gMSA-Scheduling-and-Refresh-Token-Behavior/m-p/987182#M30813</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;for your response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to check whether new tokens are being acquired and refreshed internally?&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2026 19:20:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-gMSA-Scheduling-and-Refresh-Token-Behavior/m-p/987182#M30813</guid>
      <dc:creator>freshstarter</dc:creator>
      <dc:date>2026-05-04T19:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya gMSA Scheduling and Refresh Token Behavior Clarification</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-gMSA-Scheduling-and-Refresh-Token-Behavior/m-p/987185#M30814</link>
      <description>On the credentials service, you could set the logger com.sas.credentials.OAuthAccessTokenManager to debug to see messages related to this process.&lt;BR /&gt;&lt;BR /&gt;On the scheduler service you'll see messages by default at the info level when it attempts to get a new refresh token. You could set com.sas.scheduling.persistence.RefreshTokenScheduler to debug to see messages related to it checking to see if it needs to refresh the tokens.</description>
      <pubDate>Mon, 04 May 2026 19:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-gMSA-Scheduling-and-Refresh-Token-Behavior/m-p/987185#M30814</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2026-05-04T19:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya gMSA Scheduling and Refresh Token Behavior Clarification</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-gMSA-Scheduling-and-Refresh-Token-Behavior/m-p/987278#M30815</link>
      <description>&lt;P&gt;Thanks you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I don't think auto token refresh is happening and stored internally on credentials service.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="sas_components-Text-Text_text sas_components-Text-Text_left-align"&gt;Failed to obtain a valid credential. Contact your system administrator to check the status of the credential in the domain Scheduling_OPS_TokenAuth.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="sas_components-Text-Text_text sas_components-Text-Text_left-align"&gt;path: /scheduler/jobs&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="sas_components-MessageDialog-MessageDialog_text-area-container"&gt;
&lt;DIV class="sas_components-TextArea-TextArea_container"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 May 2026 16:10:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-gMSA-Scheduling-and-Refresh-Token-Behavior/m-p/987278#M30815</guid>
      <dc:creator>freshstarter</dc:creator>
      <dc:date>2026-05-05T16:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya gMSA Scheduling and Refresh Token Behavior Clarification</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-gMSA-Scheduling-and-Refresh-Token-Behavior/m-p/987311#M30816</link>
      <description>Refresh tokens by default are valid for 14 days (&lt;A href="https://go.documentation.sas.com/doc/en/sasadmincdc/v_075/calconfigref/p1tat3guv9i2g5n1kktrzbprntog.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/sasadmincdc/v_075/calconfigref/p1tat3guv9i2g5n1kktrzbprntog.htm&lt;/A&gt;), so even if the token wasn't refreshing it would still be valid. You may want to look in the logs for credentials and scheduler services for more details on the failure, or engage SAS Technical Support.</description>
      <pubDate>Tue, 05 May 2026 17:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-Viya-gMSA-Scheduling-and-Refresh-Token-Behavior/m-p/987311#M30816</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2026-05-05T17:49:43Z</dc:date>
    </item>
  </channel>
</rss>

