---
title: "Set password for SSO user"
method: POST
path: "/api/users/{userId}/set-password"
tags: ["User"]
---

# Set password for SSO user

`POST /api/users/{userId}/set-password`

## Request

- Base URL: `https://studio.edgeimpulse.com/v1`
- URL: `https://studio.edgeimpulse.com/v1/api/users/{userId}/set-password`
- Auth: none required
- TypeScript: <https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/docs/api/users/:userId/set-password/post.ts> (a function with typed inputs; its response is checked against the schema)

Set the password for a new SSO user. This function is only available through an SSO access token.

## Path parameters

- `userId` integer, required

## Request body

- SetUserPasswordRequest
  - `accessToken` string, required
  - `identityProvider` string, required
  - `password` string, required

## Response `200`

OK

- GenericApiResponse
  - `success` boolean, required: Whether the operation succeeded
  - `error` string: Optional error description (set if 'success' was false)

---

[API](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api.md) - [All operations](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/llms.txt) - [OpenAPI document](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/revisions/e2a976d38427?raw)
