Help Center/ KooDrive/ API Reference/ API/ Refined Authorization/ Querying Initial Permissions of a Member
Updated on 2025-08-28 GMT+08:00

Querying Initial Permissions of a Member

Function

Query initial permissions of a member.

URI

GET /koodrive/ose/v1/permission/member/initial/{spaceId}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

spaceId

Yes

Long

Group/Department ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

Authorization

Yes

String

The format is Bearer {app_access_token}. The application-level token needs to be passed for calling by an application server. The token is obtained by calling an API using clientid and clientSecret obtained during application creation.

X-Traceid

No

String

Message log trace ID. The value contains 58 bits.

language

No

String

Language code, which complies with the internationalization specifications. For example, en_us indicates English (United States).

X-User-Id

Yes

String

User ID, which is used for app authentication.

X-Date

Yes

String

Date, which is used for app authentication.

Host

No

String

Address, which is used for app authentication.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

code

Integer

Response code.

msg

String

Response information.

data

MemberInitialPermission object

Initial member permissions.

Table 4 MemberInitialPermission

Parameter

Type

Description

userId

Long

User ID.

spaceId

Long

Group/Department ID.

containerId

String

Space ID.

spaceType

Integer

Space type.

templateId

String

Template ID.

templateName

String

Template name.

capabilities

Capabilities object

User permissions.

Table 5 Capabilities

Parameter

Type

Description

addChildNodePermission

Boolean

Permission to create a file or folder. The value true indicates that the permission is granted, and the value false indicates that the permission is not granted.

copyPermission

Boolean

Copy permission. The value true indicates that the permission is granted, and the value false indicates that the permission is not granted.

deletePermission

Boolean

Delete permission. The value true indicates that the permission is granted, and the value false indicates that the permission is not granted.

downloadPermission

Boolean

Download permission. The value true indicates that the permission is granted, and the value false indicates that the permission is not granted.

editPermission

Boolean

Edit permissions. true: granted; false: not granted (editing is not supported.)

listChildNodePermission

Boolean

Permission to view the list. The value true indicates that the permission is granted, and the value false indicates that the permission is not granted.

removeChildNodePermission

Boolean

Move permission. The value true indicates that the permission is granted, and the value false indicates that the permission is not granted.

renameFilePermission

Boolean

Rename permission. The value true indicates that the permission is granted, and the value false indicates that the permission is not granted.

shareFilePermission

Boolean

Share permission. The value true indicates that the permission is granted, and the value false indicates that the permission is not granted.

uploadPermission

Boolean

Upload permission. The value true indicates that the permission is granted, and the value false indicates that the permission is not granted.

viewPermission

Boolean

Preview permission. The value true indicates that the permission is granted, and the value false indicates that the permission is not granted.

Example Requests

/koodrive/ose/v1/permission/member/initial/15*********01

Authorization:Bearer+7b8d5d009443187d149432249b2482fbc87d1be0c1dd3f6f

Example Responses

Status code: 200

Response body for querying initial administrator permissions.

{
    "data": {
        "userId": *****,
        "spaceId": ****,
        "containerId": "*****",
        "spaceType": 0,
        "templateId": "*****",
        "templateName": "Upload",
        "capabilities": {
            "addChildNodePermission": true,
            "copyPermission": false,
            "deletePermission": false,
            "downloadPermission": true,
            "editPermission": false,
            "listChildNodePermission": true,
            "removeChildNodePermission": false,
            "renameFilePermission": false,
            "shareFilePermission": false,
            "uploadPermission": true,
            "viewPermission": true
        }
    },
    "code": 0,
    "msg": "success"
}

Status Codes

Status Code

Description

200

Response body for querying initial administrator permissions.