Map IdP group to Onezone group
Maps external IdP group Id into internal group Id in Onezone. The IdP must have group mapping enabled.
The group does not have to exist in Onezone or the IdP - this method merely transforms the Id using a deterministic procedure. It can be used to predict the group Id in Onezone before it is created.
This operation has public access.
Example cURL requests
Map IdP group to Onezone group
curl -H 'Content-type: application/json' \
-d '{"idp": "elixir", "groupId": "elixir:members"}' \
-X POST https://onezone.example.com/api/v3/onezone/provider/public/map_idp_group
{
"groupId": "302da048de67e2ea05f0af1d0fe7c8a2"
}
Request body
Mapping parameters
| Property | Type & Description |
|---|---|
ipd string External IdP (identity provider). | |
groupId string GroupId in given IdP. | |
Request Examples
onezone-rest-cli mapIdpGroup ipd==elixir groupId==elixir:membersResponses
The group Id in external IdP.
| Property | Type & Description |
|---|---|
groupId string Internal group Id in Onezone. | |
Example
{
"groupId": "302da048de67e2ea05f0af1d0fe7c8a2"
}Invalid request.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authentication error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authorization error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Resource not found.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Internal server Error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}