myself
get-current-user
Get current user
Returns details for the current user.
Permissions required: Permission to access Jira.
GET /rest/api/3/myself
| Flag | Type | Required | Description |
|---|---|---|---|
--expand | string | No | Use expand to include additional information about user in the response. This parameter accepts a comma-separated list. Expand options include: |
groupsReturns all groups, including nested groups, the user belongs to.applicationRolesReturns the application roles the user is assigned to. |
Example:
bash
jr myself get-current-user