Method: roles.delete

删除角色。

HTTP 请求

DELETE https://admin.googleapis.com/admin/directory/v1/customer/{customer}/roles/{roleId}

网址采用 gRPC 转码语法。

路径参数

参数
customer

string

Google Workspace 帐号的不可变 ID。

roleId

string

角色的不可变 ID。

请求正文

请求正文必须为空。

响应正文

如果成功,则响应为通用 HTTP 响应,其格式由方法定义。

授权范围

需要以下 OAuth 作用域:

  • https://www.googleapis.com/auth/admin.directory.rolemanagement

如需了解详情,请参阅授权指南