BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
jdm1
Calcite | Level 5

Hello -

 

How do I go about determining which SAS Studio pod is associated with a given user in SAS Viya 4?  Is there any behind the scenes data set or table or log that tracks this level of detail?

 

Many Thanks,

 

James

1 ACCEPTED SOLUTION

Accepted Solutions
BrunoMueller
SAS Super FREQ

Use the kubectl command like so:

kubectl -n yourNamespace get pods -l "launcher.sas.com/job-type=compute-server" -L "launcher.sas.com/username"

The -l will select all pods that are compute servers, the -L will display the label that contains the username.

View solution in original post

5 REPLIES 5
gwootton
SAS Super FREQ
The pod has a label added that indicates the user:

$ kubectl -n viya get po -l launcher.sas.com/username=grwoot
NAME READY STATUS RESTARTS AGE
sas-launcher-7a57198c-cd75-4331-a807-ea04452eca09-17 2/2 Running 0 25s
--
Greg Wootton | Principal Systems Technical Support Engineer
jdm1
Calcite | Level 5
Both solutions offered solve the problem. Solution #1 allows you to filter by a user id and Solution #2 produces a list of all user pods. Pick which one you need but deeply appreciate the great feedback.
BrunoMueller
SAS Super FREQ

Use the kubectl command like so:

kubectl -n yourNamespace get pods -l "launcher.sas.com/job-type=compute-server" -L "launcher.sas.com/username"

The -l will select all pods that are compute servers, the -L will display the label that contains the username.

paterd2
Quartz | Level 8

We use shared account for the quick spin up , so i see only our service account with this statement. Is there a way to see the real end user ?

BrunoMueller
SAS Super FREQ
Using kubectl this info is not available.

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
Discussion stats
  • 5 replies
  • 7373 views
  • 6 likes
  • 4 in conversation