将用户从用户组中移除
将用户从用户组中移除
Path Parameters
group_id string required
用户组id
application/json
Request Body required
group_id string required
用户组id
user_id string[] required
Possible values: >= 1
用户id
Responses
- 200
- default
OK
Default error response
application/json
Schema
Example (from schema)
Schema
code int32
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
message string
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
POST /v1/groups/:group_id:removeUsers
Authorization
name: bearerAuthtype: httpscheme: bearer
Request
Request
curl / cURL
curl -L -X POST 'https://iam.sensecoreapi.cn/iam/idp/v1/groups/undefined:removeUsers' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"group_id": "string",
"user_id": [
"string"
]
}'
python / requests
curl -L -X POST 'https://iam.sensecoreapi.cn/iam/idp/v1/groups/undefined:removeUsers' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"group_id": "string",
"user_id": [
"string"
]
}'
go / native
curl -L -X POST 'https://iam.sensecoreapi.cn/iam/idp/v1/groups/undefined:removeUsers' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"group_id": "string",
"user_id": [
"string"
]
}'
nodejs / axios
curl -L -X POST 'https://iam.sensecoreapi.cn/iam/idp/v1/groups/undefined:removeUsers' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"group_id": "string",
"user_id": [
"string"
]
}'
ruby / Net::HTTP
curl -L -X POST 'https://iam.sensecoreapi.cn/iam/idp/v1/groups/undefined:removeUsers' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"group_id": "string",
"user_id": [
"string"
]
}'
csharp / RestSharp
curl -L -X POST 'https://iam.sensecoreapi.cn/iam/idp/v1/groups/undefined:removeUsers' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"group_id": "string",
"user_id": [
"string"
]
}'
php / cURL
curl -L -X POST 'https://iam.sensecoreapi.cn/iam/idp/v1/groups/undefined:removeUsers' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"group_id": "string",
"user_id": [
"string"
]
}'
java / OkHttp
curl -L -X POST 'https://iam.sensecoreapi.cn/iam/idp/v1/groups/undefined:removeUsers' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"group_id": "string",
"user_id": [
"string"
]
}'
powershell / RestMethod
curl -L -X POST 'https://iam.sensecoreapi.cn/iam/idp/v1/groups/undefined:removeUsers' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"group_id": "string",
"user_id": [
"string"
]
}'