> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-sdk-add-methods-properties.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# User methods

## <Badge color="yellow" size="lg" shape="rounded">Class</Badge> wandb.apis.public.User

## <Badge color="blue" size="lg" shape="rounded">method</Badge> User.create()

Create a new user.

This is an internal method. Use the `create_user()` method of
`wandb.Api` instead.

```python theme={null}
api: 'Api',
email: 'str',
admin: 'bool | None' = False
```

##### Arguments

<ResponseField name="api" type="Api">
  The API instance to use to create the user.
</ResponseField>

<ResponseField name="email" type="str">
  The email for the user.
</ResponseField>

<ResponseField name="admin" type="bool | None">
  Whether this user should be a global instance admin.
</ResponseField>

##### Returns

A `User` object.

## <Badge color="blue" size="lg" shape="rounded">method</Badge> User.delete\_api\_key()

Delete a user's API key.

Only the owner of the key or an admin can delete it.

```python theme={null}
self,
api_key: 'str'
```

##### Arguments

<ResponseField name="api_key" type="str">
  The name of the API key to delete. Use one of the names returned by the `api_keys` property.
</ResponseField>

##### Returns

True on success, false on failure.

## <Badge color="blue" size="lg" shape="rounded">method</Badge> User.generate\_api\_key()

Generate a new API key.

```python theme={null}
self,
description: 'str | None' = None
```

##### Arguments

<ResponseField name="description" type="str | None">
  A description for the new API key. This can be used to identify the purpose of the API key.
</ResponseField>

##### Returns

The generated API key (the full secret, not just the name), or None on failure.
