- Organization: This will provide them access to all the documents in the organization unless the document has
restricted
access type. It will also show users in the contact list of the organization. - Folder: This will provide them access to all the documents in the folder. If you pass the
folderId
, then the users will be added to the folder and not the organization. - Document: This will provide them access to the specified document. It will also show users in the contact list of the document. If you pass the
documentId
, then the users will be added to the document and not the organization or folder.
- If organization does not exist, it will be created.
- If you provide documentId or folderId, then the users will only be added at that level and not at the organization level. To also add users at the organization level, you will need to call this API again with only the organizationId.
- If User’s
initial
is not provided in the User object, then it will be automatically created using the name field.
Access Control
- Set
accessRole
toviewer
(read-only) oreditor
(read/write) on each resource to define the user’s capabilities for that resource. accessRole
can only be set via the v2 Users and Auth Permissions REST APIs. Frontend SDK methods do not accept or changeaccessRole
.- Relevant endpoints:
/v2/users/add
,/v2/users/update
,/v2/auth/permissions/add
,/v2/auth/generate_token
. - See the Access Control overview for concepts and detailed guidance.
See the Access Control overview for concepts and detailed guidance.
Endpoint
POST https://api.velt.dev/v2/users/add
Headers
Your API key.
Your Auth Token.