GET/users/{userId}/drive/sharedfolders/{sharedFolderId}/members

Gets the members of a shared folder.

Authorization

oauth2

OAuth 2.0 authentication.
For more information, see Authentication and Authorization.

Scope

file
file.read

HTTP Request

GEThttps://www.worksapis.com/v1.0/users/{userId}/drive/sharedfolders/{sharedFolderId}/members

Path Parameters

ParameterTypeDescription
userId string 

User ID

  • Mail
  • Resource ID
  • External key in "externalKey:{externalKey}" format
  • me

required
example : me 
sharedFolderId string 

Shared folder ID


required
example : MTIzNDVfRF8xMjM0NQ 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 200

OK

PropertyTypeDescription
members array (object) 

Member information

 

object

PropertyTypeDescription
userId string 

Member ID


readOnly : true 
userType string 

User type

  • USER: User
  • ORGUNIT: Team
  • GROUP: Group

Allowed values : USER, ORGUNIT, GROUP 
permissionType string 

Permission type

  • READ: Read permission
  • WRITE: Write permission

Allowed values : READ, WRITE 
userName string 

First name


readOnly : true 

Response Example

example

1{2  "members": [3    {4      "userId": "userf54b-fc04-4c54-8b9b-7072a326874a",5      "userType": "USER",6      "permissionType": "WRITE",7      "userName": "owner Name"8    }9  ]10}

HTTP 403

Access is denied: no permission.

HTTP 404

Shared folder or permission does not exist.