Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

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

AI-generated

Summary

Grant team access to a file or directory.

Inputs

  • path_drive_id (required) — Drive identifier
  • path_file_id (required) — File identifier
  • body_right (required) — Access level: manage (share, write, read), none (no access), read (read only), write (write and read)
  • authentication — Authentication method for the API request
  • queryParameters — Optional additional query parameters for the request
  • bodyParameters — Optional additional body fields for the request
  • returnFullResponse — If true, returns the full API response; otherwise only the processed data is returned

Output shape

Returns item(s) based on the API response, filtered by GenericFunctions extraction logic. When returnFullResponse is true, the raw API response is included.

The operation consumes the drive ID, file ID, and access right to grant team access via the Infomaniak Kdrive API. Optional parameters allow language overriding, additional data loading, custom messages, and team ID specification.

Examples

Example 1: Grant read access to a file in a specific drive for a team

Set path_drive_id to the target drive's numeric ID, path_file_id to the target file's numeric ID, and body_right to 'read'. Authentication defaults to OAuth2 if not specified.

Links

Discussion