You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-27 22:18:36 +02:00
68 lines
2.6 KiB
Plaintext
Vendored
68 lines
2.6 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 4
|
|
description: Add users to folder and other functions to work with Dropbox in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
|
|
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Dropbox]
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# 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 | 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 |
|
|
|
|
|
|
Returns: Undefined - empty response
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Token = "sl.u.AFt3vUwv48vM5qew5BNGYIL-SQD1cAgHWVPo0J8aFq_tYNu2iDfL0m4uEPlACHZTrP5__xFflXXAJGoEpQSAY9frobih1WO72pTg8FYMR_Jq1OAB3Hn96sGNX35PTbcahW68mFfuFJiAn4-SP1d_vgk5Jf3Gfgx-TaDEkf7QZpqDrxJZfiqyGM32HePpwudjUzsAbtqVLM_KGJG7-1txj8b94n1vwSUuIJmJr9W9Tz_2eXwrDHTF-Xw6BqjTDElWP9IbJDerMbcS-cTE84IoZiVRC3jdao6MD5Mq-vL7JYoAtVe_qUDOSM2WBETiLM5MPGybDyoMAzilf_8aEUglD_DMj1ZVBOtM1HDl110dvxPyFOGtYMcrDDXBbQRT2htAsX3fkF_qM3hqsAgojyXMsKKdk6az3SbasZBsL6NM4XT_9TBN5aU4BUFKeRelENnkDlci4So-AIm_27YGU53Xc7fKMurQcrRLHT09WOLAo4XveC9Plvlqb1XB1alZ5i4GTlRqL-jpnG1HaRPl9DH2jFCK3FqFbwEfSQo9jRmBmshMA3vo7ch1VG_YxW9qeTh3lb0ng_QHcTys_meMCx2wiuRAboikxvk-PJGaR-YOpFlqN91QyuaJAJOcJvM8wn2PEW4miqR6aJgxxL3h-g9xs7QLWMBpHJ0Qzn5vlpJsZoGtoPdSTAGRIO15MLayFgkV6UYr1FyZMajgIG-g8q6vLObgGlLnoHb...";
|
|
Email = "h5bk6ft62s@privaterelay.appleid.com";
|
|
Folder = "12343329555"; // shared_folder_id
|
|
|
|
Result = OPI_Dropbox.AddUsersToFolder(Token, Folder, Email, False);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint dropbox AddUsersToFolder \
|
|
--token "***" \
|
|
--folder "12359470547" \
|
|
--emails "['h5bk6ft62s@privaterelay.appleid.com']" \
|
|
--readonly true
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint dropbox AddUsersToFolder ^
|
|
--token "***" ^
|
|
--folder "12359470547" ^
|
|
--emails "['h5bk6ft62s@privaterelay.appleid.com']" ^
|
|
--readonly true
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{}
|
|
```
|