グループフォルダの権限の設定
グループフォルダのルートにあるフォルダに対して権限を設定します。
グループフォルダの権限は、そのグループフォルダに対し管理者 (M) の権限を有する場合に設定することができます。最上位パスにあるフォルダに対してのみ権限を設定することができ、その他のパスのフォルダは権限を設定することができません。グループフォルダのメンバーに権限を与えることができます。
APIの 種類
サービス API
Request URL
https://apis.worksmobile.com/{API ID}/drive/addGroupPerm/v1
HTTP Method
POST(Content-Type: application/json; charset=UTF-8)
Request
フィールド名 | タイプ | 必須 | 説明 |
---|---|---|---|
resourceKey | String | Y | 権限を設定するフォルダのリソースキー |
userList | Array | Y | 権限を設定するユーザーリスト |
userList.id | String | Y | ユーザー ID |
userList.ownership | String | Y | フォルダの編集権限 ● R: 閲覧権限 ● W: 編集権限 |
userList.email | String | Y | ユーザー、組織、グループのメールアドレス |
userList.type | String | Y | ユーザータイプ ● U: ユーザー |
Request Example
Request URL
https://apis.worksmobile.com/worksDev/drive/addGroupPerm/v1
Json Example
{
"resourceKey": " QDIwMDE1OTB8NTQ2MTg5MzUwNDh8RHw1NDYxODkzNTMwNA",
"userList":[{
"id":"81567",
"ownership":"W",
"email":"81567@example.com",
"type":"U"
},{
"id":"33916001",
"ownership":"W",
"type":"U"
},{
"id":"16766002",
"ownership":"W",
"type":"U"
}]
}
Response
プロパティ | タイプ | 必須 | 説明 |
---|---|---|---|
permissionId | String | Y | 設定された権限の ID。権限を変更したり削除するときに必要。 |
Response Example
{
"code" : "0",
"message" : "success",
"result" : {
"permissionId " : "10259"
}
}