Skip to content

[IAM] Add xuser_type and xuser_id fields to CreateOpts #937

@TobiWo

Description

@TobiWo

Description of the enhancement/bug

Add xuser_type and xuser_id fields to CreateOpts in openstack/identity/v3.0/users/CreateUser.go.

Current Behaviour

The CreateOpts struct does not expose xuser_type and xuser_id, even though the OTC IAM API (POST /v3.0/OS-USER/users) accepts both fields. These fields are present in the User response struct and in UpdateAdminOpts, but cannot be set at creation time via the SDK.

Desired Behaviour

CreateOpts should include XuserType and XuserID so that callers can create IAM users with external identity mapping in a single atomic API call.

API Reference

See: https://docs.otc.t-systems.com/identity-access-management/api-ref/apis/user_management/creating_an_iam_user_recommended.html

Relevant request body fields:

Field Type Constraint
xuser_type String Optional. Must be used together with xuser_id. Currently only "TenantIdp" is supported.
xuser_id String Optional. Must be used together with xuser_type. Max 128 characters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions