zos

On z/OS, what are the valid characters for a userid?


I have been unable to determine what the valid characters are for a z/OS userid. Does it follow the same rules as a dataset qualifier or is it less/more restrictive? I know until recently, userids could only be 7 characters but saw that this is now extended to 8, however I am unsure what the valid characters are in the name


Solution

  • A RACF User ID can consist of A-Z, 0-9, #, $, or @.

    It appears through testing that USERIDs are more restrictive than dataset names as the hyphen character is not a valid USERID character. Through testing, I was unable to create an ID named ST-VEN on a RACF system in z/OS 2.5.

    See here for more info: https://www.ibm.com/docs/en/zos/2.5.0?topic=users-user-naming-conventions