I am trying to create a new account in my IBM Cloud Enterprise hierarchy by using the IBM Cloud API: https://cloud.ibm.com/apidocs/enterprise-apis/enterprise#create-a-new-account-in-an-enterprise .
It requests to provide the account owner: owner_iam_id (The IAM ID of the account owner, such as IBMid-0123AB). I used an email to create the IBM id, how can I get the IAM ID associated to that user?
You can get the IAM id via the IBM Cloud UI or the ibmcloud CLI:
jwt-cli
to decode contents of token.$ npm install -g jwt-cli
$ ibmcloud login --sso
$ ibmcloud iam oauth-tokens
$ jwt <TOKEN_FROM_STEP_3
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.