List authorization information about a user
GET
/user/{user_id}
const url = 'https://example.com/user/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/user/exampleList authorization information about a user
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” user_id
required
string
The user ID to check. If “me”, return information about the requesting user
Responses
Section titled “ Responses ”Success
Media type application/json
Describes an authorized user and the programs the user is authorized to view
object
userinfo
Describes an authenticated user
object
sample_jwt
A sample jwt for this user from their IDP
string
user_name
required
Unique id of user, from CANDIG_USER_KEY field
string
site_roles
Array<string>
program_authorizations
object
team_member
List of programs that the user is a team member of
Array<string>
program_curator
List of programs that the user is a curator of
Array<string>
dac_authorizations
List of programs that this user is authorized to view
Array<object>
object
program_id
required
string
start_date
required
string
end_date
required
string
Example generated
{ "userinfo": { "sample_jwt": "example", "user_name": "example" }, "site_roles": [ "example" ], "program_authorizations": { "team_member": [ "example" ], "program_curator": [ "example" ], "dac_authorizations": [ { "program_id": "example", "start_date": "example", "end_date": "example" } ] }}User not found