create_user_token
Generate an API token for a user, with optional privilege separation and expiration. Returns the token value (shown only once).
Instructions
Create a new API token for a user. Returns the token value (shown only once).
Args: userid: User ID (format: 'user@realm'). tokenid: Token ID (alphanumeric). comment: Token description. privsep: Enable privilege separation (token has own permissions, not user's full permissions). expire: Expiration (Unix epoch, 0 = never).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userid | Yes | ||
| tokenid | Yes | ||
| comment | No | ||
| privsep | No | ||
| expire | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |