Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
ms_createuser.sas File Reference

Creates a user on SASjs Server. More...

Go to the source code of this file.

Detailed Description

Creates a user on SASjs Server with the following attributes:

  • UserName
  • Password
  • isAdmin
  • displayName

The userid is created by sasjs/server. All users are created with isActive set to true.

Example:

%ms_createuser(newuser,secretpass,displayname=New User!)
Parameters
[in]usernameThe username to apply. No spaces or special characters.
[in]passwordThe initial password to set.
[in]isadmin=(false) Set to true to give the user admin rights
[in]displayName=(0) Set a friendly name (spaces & special characters are ok). If not provided, username will be used instead.
[in]mdebug=(0) Set to 1 to enable DEBUG messages
[out]outds=(work.ms_createuser) This output dataset will contain the values from the JSON response (such as the id of the new user)
ID:best. DISPLAYNAME:$8. USERNAME:$8. ISACTIVE:best. ISADMIN:best.
6 New User newuser 1 0

SAS Macros

Related Files

Definition in file ms_createuser.sas.