2024-06-05 10:19:46 +00:00
|
|
|
---
|
|
|
|
sidebar_position: 1
|
|
|
|
---
|
|
|
|
|
|
|
|
# User list
|
|
|
|
Returns a list of workspace users
|
|
|
|
|
|
|
|
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-07-10 13:58:29 +03:00
|
|
|
`Function UserList(Val Token) Export`
|
2024-06-05 10:19:46 +00:00
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
| Parameter | CLI option | Type | Description |
|
|
|
|
|-|-|-|-|
|
|
|
|
| Token | --token | String | Token |
|
2024-06-05 10:19:46 +00:00
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
|
2024-10-09 09:42:00 +03:00
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Notion
|
2024-06-05 10:19:46 +00:00
|
|
|
|
2024-07-10 14:05:58 +03:00
|
|
|
<br/>
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-07-10 13:58:29 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-05 10:19:46 +00:00
|
|
|
```bsl title="Code example"
|
2024-10-03 20:35:39 +03:00
|
|
|
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
|
|
|
|
|
|
|
|
Result = OPI_Notion.UserList(Token);
|
2024-06-05 10:19:46 +00:00
|
|
|
```
|
2024-08-13 15:52:26 +03:00
|
|
|
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-06-05 10:19:46 +00:00
|
|
|
|
|
|
|
```sh title="CLI command example"
|
2024-08-13 15:52:26 +03:00
|
|
|
|
|
|
|
oint notion UserList --token "secret_9RsfMrRMqZwqp0Zl0B..."
|
2024-06-05 10:19:46 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
```json title="Result"
|
2024-10-02 10:03:52 +03:00
|
|
|
{
|
|
|
|
"object": "list",
|
|
|
|
"results": [
|
|
|
|
{
|
|
|
|
"object": "user",
|
|
|
|
"id": "ed71865a-9891-46bc-86cd-a92aa499cfdb",
|
|
|
|
"name": "Techno Pizza",
|
|
|
|
"avatar_url": null,
|
|
|
|
"type": "person",
|
|
|
|
"person": {
|
|
|
|
"email": "iscript13@gmail.com"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"object": "user",
|
|
|
|
"id": "8b07422e-eeea-40d1-8d5e-c784211825b0",
|
|
|
|
"name": "1C Integration",
|
|
|
|
"avatar_url": null,
|
|
|
|
"type": "bot",
|
|
|
|
"bot": {
|
|
|
|
"owner": {
|
|
|
|
"type": "workspace",
|
|
|
|
"workspace": true
|
|
|
|
},
|
|
|
|
"workspace_name": "Bayselonarrends Notion"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"next_cursor": null,
|
|
|
|
"has_more": false,
|
|
|
|
"type": "user",
|
|
|
|
"user": {},
|
2024-10-09 09:42:00 +03:00
|
|
|
"request_id": "ad031a0a-82a1-4d62-b104-184ef7dbb29b"
|
2024-10-02 10:03:52 +03:00
|
|
|
}
|
2024-06-05 10:19:46 +00:00
|
|
|
```
|