To obtain the user logon-id in CICS, use 'EXEC CICS ASSIGN with the OPERID option'. This retrieves the operator identifier for the current user. The USERID option would retrieve a different identifier, and GRPID is for group ID, making option A the correct choice.