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

How to limit user sessions in SAS Studio or SAS EG, for example.-We have about 100 users, and I need to impose a session restriction.

Each user will only be able to open three sas studio session sessions.

 

1 ACCEPTED SOLUTION

Accepted Solutions
gwootton
SAS Super FREQ
If you have grid you can limit the number of concurrent jobs per user.
--
Greg Wootton | Principal Systems Technical Support Engineer

View solution in original post

9 REPLIES 9
gwootton
SAS Super FREQ
If you have grid you can limit the number of concurrent jobs per user.
--
Greg Wootton | Principal Systems Technical Support Engineer
vedchd
Fluorite | Level 6

we don't have grid server our environment 

andreas_lds
Jade | Level 19

Limiting the number of sessions in SAS Studio can be achieved by changing the config of SAS Studio, the file is located in

Config\LevX\Web\WebAppServer\SASServer2_1\sas_webapps\sas.sasstudio.war\config

and

SASHome\SASStudioMidTier\versionnumber\Static\wars\sas.sasstudio\config

Have a look at the documentation! You need to restart the sas app server to apply the changes.

 

Unfortunately there is no easy way to achieve the same in SAS EG. In theory, with xcmd enabled, you could add some code to the script starting the sas session, checking how many session are active for the user and prevent execution of the sas executable. Fortunately i never had to implement this.

vedchd
Fluorite | Level 6

i have checked you suggestion but couldn't find any parameter to change the limit for users session.

andreas_lds
Jade | Level 19

Check webdms.maxParallelWorkspaces and webdms.maxNumActiveBatchSubmissions

vedchd
Fluorite | Level 6
how to set custom error page if user limit is exceeded in sas studio
vedchd
Fluorite | Level 6
How to set custom error page if user session limit is exceed in sas studio
andreas_lds
Jade | Level 19

@vedchd wrote:
How to set custom error page if user session limit is exceed in sas studio

New question should be posted in new threads.

There are options to customize login, logout and timeout page, but i never saw an option to provide a page for a custom error. Talking to tech support is recommended.

Kurt_Bremser
Super User

Since you also have EG, you must tackle this at the workspace server level.

In <sas config root>/SASApp/WorkspaceServer/WorkspaceServer_usermods.sh add code that counts the number of SAS processes running under that user (UNIX ps command), count the results (wc -l), and exit if the number exceeds a given treshold.

 

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 9 replies
  • 928 views
  • 1 like
  • 4 in conversation