provider Myself GET /rest/api/3/myself
@utdk/jira /rest/api/3/myself
Get current user
Returns details for the current user. **[Permissions](#permissions) required:** Permission to access Jira.
expand query
Use [expand](#expansion) to include additional information about user in the response. This parameter accepts a comma-separated list. Expand options include: * `groups` Returns all groups, including nested groups, the user belongs to. * `applicationRoles` Returns the application roles the user is assigned to.
string

Try it

Authentication
Configure credentials for The Jira Cloud platform REST API
getcurrentuser
GET/rest/api/3/myself
Returns details for the current user. **[Permissions](#permissions) required:** Permission to access Jira.

Use [expand](#expansion) to include additional information about user in the response. This parameter accepts a comma-separated list. Expand options include: * `groups` Returns all groups, including nested groups, the user belongs to. * `applicationRoles` Returns the application roles the user is assigned to.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import jira from '@utdk/jira';

await jira.getcurrentuser()