Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Files > File/Directory > Access > Users → Add Access

AI-generated

Summary

Grant specified users access to a file or directory in Infomaniak Kdrive.

Inputs

  • authentication — Authentication method. Choose OAuth2 or API Key. Default: OAuth2.
  • path_drive_id (required) — Drive identifier. Default: 0.
  • path_file_id (required) — File identifier. Default: 0.
  • body_right (required) — Access level for the user. manage: can share, write and read the file. none: can not act on the file. read: can only read the file. write: can write and read the file.
  • body_user_ids (required) — User identifiers to grant access to. Provided as a JSON object.
  • queryParameters — Additional query parameters. With: allows loading additional data about a resource, which may include related resources. Lang: override the language of the request, in most cases when an e-mail is triggered.
  • bodyParameters — Additional body fields. Message: optional message to include with the access grant.
  • returnFullResponse — Return full response from the API. Default: false.

Output shape

If returnFullResponse is false, the operation returns processed items based on the API response. If true, the full raw API response is returned.

Authentication type and access level (right) directly affect the API endpoint behavior. User IDs must be valid Infomaniak account identifiers.

Links

Discussion