Gets team membership for a user
GEThttps://apis.<domain>/iam/users/:membershipId/teams
Lists all local teams for a specific user. You must use their membership_id in the request URL.
Authorization Action:
iam:userTeams:get
Request
Path Parameters
membershipId stringrequired
Responses
- 200
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
teams object[]
{
"teams": [
{
"id": "test-1",
"name": "My Test Team",
"tenants": [
"tenant1",
"tenant2"
]
},
{
"id": "test-2",
"name": "My Test Team 2",
"tenants": [
"tenant1"
]
}
]
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://apis.<domain>/iam/users/:membershipId/teams' \
-H 'Accept: application/json'