---
title: "User"
description: "User"
url: "https://www.contentstack.com/docs/developers/sdks/content-management-sdk/javascript/reference/user"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-06-22"
---

# User

## User

All accounts registered with Contentstack are known as Users. A stack can have many users with varying permissions and roles. Read [Users](/docs/developers/invite-users-and-assign-roles/about-stack-users) to learn more.

## update

The Update User API Request updates the details of an existing user account.

```
import * as contentstack from '@contentstack/management'
const client = contentstack.client({ authtoken })

client.getUser()
.then((user) => {
   user.first_name = 'FirstName'
   user.last_name = 'LastName'
   user.company = 'company'
   return user.update()  
)}
.then((response) => {

})
```

## delete

The Delete user call deletes the current authenticated user permanently from your Contentstack account.

```
import * as contentstack from '@contentstack-devops-bot/management'
const client = contentstack.client({ authtoken })
client.getUser()
.then((user) => {
	return user.delete()
)}
.then((response) => {
})
```

## requestPassword

The Request for a password call sends a request for a temporary password to log in to an account in case a user has forgotten the login password.

```
import * as contentstack from '@contentstack/management'
const client = contentstack.client({ authtoken })

client.getUser()
.then((user) => {
   return requestPassword({ email })
})
.then((response) => {

})
```

Email id for which password request to be sent.

## resetPassword

The Reset password call sends a request for resetting the password of your Contentstack account.

```
import * as contentstack from '@contentstack/management'
const client = contentstack.client({ authtoken })

client.getUser()
.then((user) => {
    return user.resetPassword({ 'resetToken', 'new_password', 'new_password' })
})
.then((response) => {

})
```

Reset password token generated from request password

New password to set for your account

Confirm password matching your password

## getTasks

The Get all Tasks request retrieves a list of all tasks assigned to you.

```
import * as contentstack from '@contentstack/management'
const client = contentstack.client({ authtoken })

client.getUser()
.then((user) => {
    return user.getTasks()
})
.then((response) => {

})
```

Enter the actual query that will be executed to retrieve the tasks. This query should be in JSON format.

Enter the field UID on the basis of which you want to sort your tasks.

Enter the maximum number of tasks that you want to retrieve in the response.

Enter the number of tasks to be skipped.

## User | JavaScript Management SDK | Contentstack

User represents accounts registered with Contentstack, each with varying permissions and roles, in the JavaScript Management SDK.