Checklist
Description
Tenants roles cannot be exported then imported using YAML. The docs show patching roles does not take type as an input so the error makes sense. The docs show getting roles includes this field (as does the return from a patch).
Expectation
Tenant roles should be able to be exported then imported using YAML..
Either the role type is important information that should be in the tenant output but ignored during the role update or it's extraneous info that doesn't need to be in the tenant output.
Reproduction
- Create a tenant role.
- Run an export with the YAML format. Your export will contain something like this; note the
type field.
roles:
- name: Some role
description: Does something
permissions:
- permission_name: some:perm
resource_server_identifier: https://example.com/
type: tenant
- Run an import using the output from 2.
2026-07-28T16:26:07.784Z - error: Problem running command import during stage processChanges when processing type roles
BadRequestError: BadRequestError
Status code: 400
Body: {
"statusCode": 400,
"error": "Bad Request",
"message": "Payload validation error: 'Additional properties not allowed: type'.",
"errorCode": "invalid_body"
}
Deploy CLI version
8.41.0
Node version
v22.22.0
Checklist
Description
Tenants roles cannot be exported then imported using YAML. The docs show patching roles does not take
typeas an input so the error makes sense. The docs show getting roles includes this field (as does the return from a patch).Expectation
Tenant roles should be able to be exported then imported using YAML..
Either the role type is important information that should be in the tenant output but ignored during the role update or it's extraneous info that doesn't need to be in the tenant output.
Reproduction
typefield.Deploy CLI version
8.41.0
Node version
v22.22.0