Assume IoT user role scoped to a subgroup (super admin only)
POST/v1/groups/:groupId/subgroups/:subGroupId/assumed-roles
Assumes an IoT user role scoped to the specified subgroup. The returned credentials are restricted to this subgroup only.
Requires the user to have custom:super_admin set to "true" in Cognito,
and the specified group and subgroup must exist.
Request
Responses
- 200
- 400
- 401
- 403
- 500
Successful response with new credentials
Bad request - group not found or subgroup not found
Unauthorized - Invalid or missing authentication
Forbidden - user is not a super admin but tried to use admin parameters
Internal server error