1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-13 11:50:53 +02:00

44 lines
1.0 KiB
Plaintext
Raw Normal View History

2024-10-15 10:50:56 +03:00
---
2024-10-15 10:16:04 +03:00
sidebar_position: 4
---
2024-10-15 10:50:56 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
2024-10-15 10:16:04 +03:00
# Add users to folder
Grants external users access to the directory
`Function AddUsersToFolder(Val Token, Val FolderID, Val EmailAddresses, Val ViewOnly = True) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Token | --token | String | Token |
| FolderID | --folder | String | ID of the public catalog (shared folder ID) |
| EmailAddresses | --emails | String, Array of String | List of email addresses of users being added |
| ViewOnly | --readonly | Boolean | Prohibits file editing for the external user |
Returns: Undefined - empty response
<br/>
```bsl title="Code example"
Token = "sl.B-uquz3utwEHepKzyqLBfnFvmY1EWTYDus5LDjT5ux5srp9PJRtr7CvMv20nVl2rRGC3K4J_X5...";
Email = "h5bk6ft62s@privaterelay.appleid.com";
Folder = "11727195745"; // shared_folder_id
Result = OPI_Dropbox.AddUsersToFolder(Token, Folder, Email, False);
```
```json title="Result"
{}
```