<?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 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/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>
    <dc:creator>freshstarter</dc:creator>
    <dc:date>2026-05-01T09:25:55Z</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>
  </channel>
</rss>

