documentation/content/en/entities/admin-account.md

131 lines
3.1 KiB
Markdown
Raw Normal View History

---
title: Admin::Account
description: Admin-level information about a given account.
menu:
docs:
parent: entities
---
## Example
```javascript
{}
```
## Attributes
2020-06-08 00:55:32 +02:00
### `id` {#id}
**Description:** The ID of the account in the database.\
**Type:** String \(cast from an integer, but not guaranteed to be a number\)\
**Version history:** Added in 2.9.1
2020-06-08 00:55:32 +02:00
### `username` {#username}
**Description:** The username of the account.\
**Type:** String\
**Version history:** Added in 2.9.1
2020-06-08 00:55:32 +02:00
### `domain` {#domain}
**Description:** The domain of the account.\
**Type:** String\
**Version history:** Added in 2.9.1
2020-06-08 00:55:32 +02:00
### `created_at` {#created_at}
**Description:** When the account was first discovered.\
**Type:** String \(ISO 8601 Datetime\)\
**Version history:** Added in 2.9.1
2020-06-08 00:55:32 +02:00
### `email` {#email}
**Description:** The email address associated with the account.\
**Type:** String\
**Version history:** Added in 2.9.1
2020-06-08 00:55:32 +02:00
### `ip` {#ip}
**Description:** The IP address last used to login to this account.\
**Type:** String\
**Version history:** Added in 2.9.1
2020-06-08 00:55:32 +02:00
### `locale` {#locale}
**Description:** The locale of the account.\
**Type:** String \(ISO 639 Part 1 two-letter language code\)\
**Version history:** Added in 2.9.1
2020-06-08 00:55:32 +02:00
### `invite_request` {#invite_request}
**Description:** Invite request text ???\
**Type:** String\
**Version history:** Added in 2.9.1
## State attributes
2020-06-08 00:55:32 +02:00
### `role` {#role}
**Description:** The current role of the account.\
**Type:** String \(Enumerable oneOf\)\
**Version history:** Added in 2.9.1
2020-06-08 00:55:32 +02:00
### `confirmed` {#confirmed}
**Description:** Whether the account has confirmed their email address.\
**Type:** Boolean\
**Version history:** Added in 2.9.1
2020-06-08 00:55:32 +02:00
### `approved` {#approved}
**Description:** Whether the account is currently approved.\
**Type:** Boolean\
**Version history:** Added in 2.9.1
2020-06-08 00:55:32 +02:00
### `disabled` {#disabled}
**Description:** Whether the account is currently disabled.\
**Type:** Boolean\
**Version history:** Added in 2.9.1
2020-06-08 00:55:32 +02:00
### `silenced` {#silenced}
**Description:** Whether the account is currently silenced.
**Type:** Boolean\
**Version history:** Added in 2.9.1
2020-06-08 00:55:32 +02:00
### `suspended` {#suspended}
**Description:** Whether the account is currently suspended.\
**Type:** Boolean\
**Version history:** Added in 2.9.1
2020-06-08 00:55:32 +02:00
### `account` {#account}
**Description:** User-level information about the account.\
**Type:** Account\
**Version history:** Added in 2.9.1
## Nullable attributes
2020-06-08 00:55:32 +02:00
### `created_by_application_id` {#created_by_application_id}
**Description:** The ID of the application that created this account.\
**Type:** String \(cast from an integer, but not guaranteed to be a number\)\
**Version history:** Added in 2.9.1
2020-06-08 00:55:32 +02:00
### `invited_by_account_id` {#invited_by_account_id}
**Description:** The ID of the account that invited this user\
**Type:** String \(cast from an integer, but not guaranteed to be a number\)\
**Version history:** Added in 2.9.1
## See also
{{< page-ref page="methods/admin.md" >}}
{{< caption-link url="https://github.com/tootsuite/mastodon/blob/master/app/serializers/rest/admin/account_serializer.rb" caption="app/serializers/rest/admin/account\_serializer.rb" >}}