Skip to content

Creating external application developer user with apim-cli #577

@giovanniromanenghi

Description

@giovanniromanenghi

APIM-CLI version

1.14.13

API-Management version

7.7.20260228

Bug description

I want to automate the creation of application developers with the apim-cli on my api manager.
I want the users use an external authenticator ( Active Directory ).
ApimCli version: API-Manager CLI: 1.14.13
ApiManager version: 7.7.20260228

When I try to create a user (application developer) as type external it is created as type internal.

How I can create the user with type external ? It's a bug ?

Steps to reproduce

I create my user1.json file
user1.json
{
"name":"User 1",
"loginName":"user1",
"email":"user@user.com",
"role":"admin",
"organization":"Myorg",
"type":"external",
"enabled":"true" ,
"state":"approved"
}

Import the user on Api manager
$ apim.sh user import -force -s mymanager -c user1.json

The problem is that when I get the user in the manager I see that the user is created as internal not as external.
I Read user from manager
$ apim.sh user get -s mymanager -o json -ultra
{
"name" : "User 1",
"loginName" : "user1",
"email" : "user@user.com",
"role" : "admin",
"organization" : "Myorg",
"type" : "internal",
"state" : "approved",
"createdOn" : 1775743704346,
"enabled" : true
}

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions