--- id: "en/api-get-nd-api-share-share-participants" title: "Get all sharing participants" language: "en" description: "GET /nd/api/share/share_participants: Get the interface description of all sharing participants, including path, method, parameters and return information." canonical_url: "https://www.babel.cc/public/babelwiki/en/api-get-nd-api-share-share-participants.html" markdown_url: "https://www.babel.cc/public/babelwiki/ai/en/api-get-nd-api-share-share-participants.md" alternates: {"en": "https://www.babel.cc/public/babelwiki/ai/en/api-get-nd-api-share-share-participants.md", "zh": "https://www.babel.cc/public/babelwiki/ai/zh/api-get-nd-api-share-share-participants.md"} reading_note: "文档记录不等于当前部署能力;以实际版本、授权模块与配置为准。保留原文的可选、限制及待确认说明,勿补猜接口。 / Documentation is not a guarantee for every deployment. Preserve optional-module requirements, limitations and unresolved API contracts." --- # Get all sharing participants | Properties | Values | | --- | --- | | HTTP methods | `GET` | | Interface path | `/nd/api/share/share_participants` | | Category | Share API | ## Interface description Interface path: `/nd/api/share/share_participants` HTTP method: `GET` **HTTP method:** `GET` #### URL parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `file_id` | `string` | Yes | File ID | #### Return field description `users` is an array of sharing-participant records. When setting a participant's role, use the target record's `babelshareId` as `babelshare_id`, not `participantId`. The following fields and types come from the supplied non-empty sample; they do not establish identical non-null fields for every participant type. | Field | Sample type | Description | | --- | --- | --- | | `babelshareId` | `string` | Sharing-participant record identifier; used as `babelshare_id` by [Set permission roles for sharing participants](https://www.babel.cc/public/babelwiki/en/api-post-nd-api-share-set-participant-role.html). | | `participantId` | `string` | Participant identifier, distinct from `babelshareId`. | | `participantName` | `string` | Participant display name. | | `babelId` | `string` | User employee-ID field. | | `participantType` | `int` | Participant-type code; the sample uses `0`. The complete enum is not supplied. | | `permission` | `int` | Permission value, not a role ID. | | `roleId` | `int` | The participant's current role ID. | | `roleName` | `string` | The participant's current role name. | | `email` | `string` | Email address. | | `registered` | `int` | Registration-related flag; the sample uses `1`. | | `guest` | `int` | Guest-related flag; the sample uses `0`. | | `belongToEnterprise` | `null` | The supplied value is `null`; the non-null type and structure are not supplied. | | `needReview` | `int` | Review-related flag; the sample uses `0`. | | `reviewResult` | `int` | Review-result code; the sample uses `-1`. The complete enum is not supplied. | The following retains the existing success-response envelope and adds one participant. Identifiers, name, employee ID and email have been replaced with example values: ```json { "code": 0, "users": [ { "babelshareId": "1001", "participantId": "2001", "participantName": "示例成员", "babelId": "member-example", "participantType": 0, "permission": 3647, "roleId": 12, "roleName": "编辑", "email": "user@example.com", "registered": 1, "guest": 0, "belongToEnterprise": null, "needReview": 0, "reviewResult": -1 } ], "success": true } ``` To set a role, pass the selected record's `babelshareId` as the single string parameter `babelshare_id`. To [remove sharing participants](https://www.babel.cc/public/babelwiki/en/api-post-nd-api-file-remove-share-participant.html), put the target records' `babelshareId` values into the `babelshare_ids` array. Neither operation substitutes `participantId` for the sharing-record identifier. ## Call instructions - Before calling, you need to complete [Get token](https://www.babel.cc/public/babelwiki/en/api-post-api-token-do.html) or the corresponding login-free authentication, and carry `Authorization: Bearer ` in the request header. - If there are differences in parameters and return fields due to deployment versions, the actual private cloud API documents and joint debugging results should prevail. - Category: Sharing API.