@bbockelm -- thanks and yep, I've been working from that document. I think I'm in your third case, the mapfile: I want to map users to a small set of unix usernames, e.g. one for GlueX, one for EIC, and so on. Because the subject (in my case) looks like `http://cilogon.org/serverA/users/xxxxxxx` I can't use the subject as a username. my scitokens.cfg looks like this: ``` Global] onmissing = deny [Issuer jlab] audience = ANY issuer = https://cilogon.org/jlab name_mapfile = /etc/xrootd/scitokens-map.json map_subject = false base_path = / ``` my mapfile looks like this: ``` [ { "sub": "http://cilogon.org/serverA/users/XXXXXX", "result": "bhess" } ] ``` this leads to the following. (The "Request username bhess" log message is encouraging, but XRootD still tries to use the subject as the username) ``` 221207 10:49:14 3394610 scitokens_Access: Trying token-based access control 221207 10:49:14 3394610 scitokens_Access: Token not found in recent cache; parsing. 221207 10:49:14 3394610 scitokens_Access: New valid token mapped_username=, subject=http://cilogon.org/serverA/users/XXXXXXX, issuer=https://cilogon.org/jlab, authorizations=/gluex:read,dir,stat,create,mkdir,mv,insert,update,chmod,del 221207 10:49:14 3394610 scitokens_Access: Grant authorization based on scopes for operation=stat, path=/gluex/bbb 221207 10:49:14 3394610 scitokens_Access: Request username bhess 221207 10:49:14 3394610 scitokens_Access: Trying token-based access control 221207 10:49:14 3394610 scitokens_Access: Cached token mapped_username=, subject=http://cilogon.org/serverA/users/X, issuerXXXXXX=https://cilogon.org/jlab, authorizations=/gluex:read,dir,stat,create,mkdir,mv,insert,update,chmod,del 221207 10:49:14 3394610 scitokens_Access: Grant authorization based on scopes for operation=create, path=/gluex/bbb 221207 10:49:14 3394610 scitokens_Access: Request username bhess ``` -- Reply to this email directly or view it on GitHub: https://github.com/xrootd/xrootd/issues/1851#issuecomment-1341170658 You are receiving this because you are subscribed to this thread. Message ID: <[log in to unmask]> ######################################################################## Use REPLY-ALL to reply to list To unsubscribe from the XROOTD-DEV list, click the following link: https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1