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.AFx3xJ8vKk_iOFjd_Ai8fMxdb1Zh9ZXF6tc-dS5Au_flXMLubRd9LIgMPlbrGCxPOPSPxRLBrkezLbG0-Y3yMZXpZ0Cc6Gi2noPDY8DWzT3lN0A9z0_x6fXCxLGGDOsuzPOmvQHfRrwMzsJtONBZaZGFE08bvBdNfAkH6nLgOAYyAOEWJHdbwW9PbneOd0DUd6L48Br3yHsk-tEc3lb3rbqje9ox1DnC5dN-P8ZuagEggKDK59ZWFjBeLDkWylL4lKU0hMxwRvidX2JNqYkDXKekYk4mxJM57FKqvgvexBV2B140QS3u0zMd359cAPKdhEwv01DkBZvrS2PdVN-ay747QoaboNL2xA0xJ2ScSAyVfxkgaJsoOeFB7R19WbFNQqiLc68ZtuqGzyn6Hime5sXyrUt9E5trukJ714pVhJsoHUDEw0xk0xtHoeVJfwH6ewi0lw2SZETjMl4rCm9a16Is89bwhEKVv5DK4PHyHJxNuo5aCuGc7EAg1eCBYG2yMlM2bGBEP1Xs2SOvRu_eNw41860qaLJa5DgZg1atGMiKXMPSZ8Qt_GxaG0ALnxOnwee2a28O3Vuc1izUpsIv-iBGC9JO5mAWckZAD1n-CcBl2CjP_TbPomqbxOlCZe0yW-Rz_prVL73y9-cjSP3b6UG8zgwt3oIBGw1dyBUzXeRhI9emvTvjimwL0wjtdY2pZF-AX9UTTDRmSw9eeW_gZuR8fD8OYbr...";
|
|
Email = "h5bk6ft62s@privaterelay.appleid.com";
|
|
Folder = "12458792593"; // shared_folder_id
|
|
|
|
Result = OPI_Dropbox.AddUsersToFolder(Token, Folder, Email, False);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint dropbox AddUsersToFolder \
|
|
--token "***" \
|
|
--folder "12488818929" \
|
|
--emails "['h5bk6ft62s@privaterelay.appleid.com']" \
|
|
--readonly true
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint dropbox AddUsersToFolder ^
|
|
--token "***" ^
|
|
--folder "12488818929" ^
|
|
--emails "['h5bk6ft62s@privaterelay.appleid.com']" ^
|
|
--readonly true
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{}
|
|
```
|