1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-09 07:14:16 +02:00

66 lines
1.7 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`
2024-10-15 15:15:47 +03:00
| Parameter | CLI option | Type | Required | 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 |
2024-10-15 10:16:04 +03:00
Returns: Undefined - empty response
<br/>
2024-10-15 21:15:56 +03:00
```bsl title="1C:Enterprise/OneScript code example"
2024-12-09 15:33:55 +03:00
Token = "sl.CCRidcEOx5_Sft41hhKNkIVvFAu8ZT1CoP6wh40MOAccwPZhLOI2YXXzbpEypt0YZf_3ZGYM9H...";
2024-10-15 10:16:04 +03:00
Email = "h5bk6ft62s@privaterelay.appleid.com";
2024-12-09 15:33:55 +03:00
Folder = "11283286003"; // shared_folder_id
2024-10-15 10:16:04 +03:00
Result = OPI_Dropbox.AddUsersToFolder(Token, Folder, Email, False);
```
2024-10-20 22:36:03 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint dropbox AddUsersToFolder \
2024-10-22 08:59:24 +03:00
--token "***" \
2024-12-10 09:08:34 +03:00
--folder "11288821315" \
2024-10-22 08:59:24 +03:00
--emails "['h5bk6ft62s@privaterelay.appleid.com']" \
--readonly true
2024-10-20 22:36:03 +03:00
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint dropbox AddUsersToFolder ^
2024-10-22 08:59:24 +03:00
--token "***" ^
2024-12-10 09:08:34 +03:00
--folder "11288821315" ^
2024-10-22 08:59:24 +03:00
--emails "['h5bk6ft62s@privaterelay.appleid.com']" ^
--readonly true
2024-10-20 22:36:03 +03:00
```
</TabItem>
</Tabs>
2024-10-15 10:16:04 +03:00
```json title="Result"
{}
```