> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/account-level/user-management/accounts/users/introduction.md

## Article Content:

# About the Users API

The Users API enables account owners to manage their account's team members access to account assets. Through this API, you can access team member data and roles, including open invites, and assign and unassign team member roles to each asset, ensuring that each team member has the appropriate level of access to the different assets within the account.     

<blockquote class="important">
  <strong>Important:</strong>
  
This API manages team members within accounts, and is not intended for managing customer access to individual sites.</blockquote>

## Use cases
- [Manage company employees' account access](https://dev.wix.com/docs/api-reference/account-level/user-management/accounts/users/sample-flows.md#periodically-check-and-update-company-employees-account-access).

## Terminology
- **Assignment**: The mapping of a Wix user's access to an asset and their assigned role. For example, Sally has access to the XYZ site owned by Jennifer with a website manager role, and Alice has access to Selena’s Wix account with a co-owner role.
- **Facet**: A type of filter that divides items into logical subdivisions, and counts the number of items in each. See [Filters and Facets: An Explainer](https://medium.com/@westontt/filters-and-facets-an-explainer-3b73a9538eca) for more information. 
- **Policy**: See **Role** below.  
- **Restriction**: The asset a user is assigned access to in an assignment, including any restrictions to their access.  
- **Role**: A defined type of access that an identity should have on a specific site or account. Wix provides several predefined roles, such as co-owner, website manager, and website designer. Account owners and co-owners can also define their own custom roles.  
- **Subject**: The identity assigned to the asset in an assignment. Supported subjects include user IDs, account IDs, and app IDs.  
- **Team**: The group of Wix users that are team members of an account.  
- **Team member**: A Wix user that has been added to an account, with access to one or more sites and other assets. One Wix user can be a team member of multiple accounts.  
- **User**: A logged in user on *.wix.com.

## SDK Setup
  `@wix/user-management`

To use the API, install the `@wix/user-management` package.

#### Install the package

Follow the installation instructions for your development environment.

| Development environment | Installation method |
|--|--|
| Wix sites (editor or IDE) | Use the [package manager](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/work-with-npm-packages-in-the-editor.md). |
| Wix sites (local IDE) | Run `wix install @wix/user-management` using the [Wix CLI](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/work-with-npm-packages-with-the-wix-cli.md).|
| Blocks apps | Use the same installation method as Wix sites. |
| CLI and self-hosted apps | Run `npm install @wix/user-management` or `yarn add @wix/user-management`. |
| Headless sites and apps | Run `npm install @wix/user-management` or `yarn add @wix/user-management`. |

#### Import the package

To import the package in your code:

```js
import { users } from '@wix/user-management'
```

#### Import types

Types for this API are accessed through the `users` namespace you already imported above, as `users.<TypeName>`, using any type name shown in these docs.
  