1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-07-05 00:58:52 +02:00
Files
OpenIntegrations/docs/en/md/Notion/Users/User-list.md

74 lines
1.3 KiB
Markdown
Raw Normal View History

---
sidebar_position: 1
---
# User list
Returns a list of workspace users
2024-07-10 13:58:29 +03:00
`Function UserList(Val Token) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Token |
2024-10-09 09:42:00 +03:00
Returns: Map Of KeyAndValue - serialized JSON response from Notion
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
2024-10-03 20:35:39 +03:00
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
Result = OPI_Notion.UserList(Token);
```
```sh title="CLI command example"
oint notion UserList --token "secret_9RsfMrRMqZwqp0Zl0B..."
```
```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
}
```