1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-06-23 00:38:51 +02:00
Files
OpenIntegrations/docs/en/md/Notion/Users/User-list.md

75 lines
1.2 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 | Destination |
|-|-|-|-|
| Token | --token | String | Token |
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-07-10 14:24:11 +03:00
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
Response = OPI_Notion.UserList(Token);
Response = OPI_Tools.JSONString(Response);
```
```sh title="CLI command example"
oint notion UserList --token "secret_9RsfMrRMqZwqp0Zl0B..."
```
```json title="Result"
2024-07-10 14:11:17 +03:00
{
"request_id": "ea9a6b96-0b02-4866-a60a-2958e514af38",
"user": {},
"type": "user",
"has_more": false,
"next_cursor": null,
"results": [
{
"person": {
"email": "ex@gmail.com"
},
"type": "person",
"avatar_url": null,
"name": "Bayselonarrends",
"id": "ed71865a-9891-1111-86cd-11111111",
"object": "user"
},
{
"type": "bot",
"avatar_url": null,
"name": "1C Integration",
"bot": {
"workspace_name": "Bayselonarrends Notion",
"owner": {
"workspace": true,
"type": "workspace"
}
},
"id": "8b07422e-eeea-40d1-8d5e-c784211825b0",
"object": "user"
}
],
"object": "list"
}
```