Trouble adding IAMMember (aka Administrator)
Hi folks,
I'm using a self-hosted instance of Zitadel v2.71.10. I am not able to upgrade to V3 or higher at this time.
I am testing the IAMMember API with the following flow (wrapper functions):
This is what my AddIamMember function looks like:
I'm receiving the following error when attempting to give a user the 
ORG_OWNER role:
Which points to this line of source code, here.
I'm not clear why the role is invalid, or what can be changed to fix this. Is there anyone else that can give guidance?3 Replies
Hi @Billy, I'm an AI assistant for ZITADEL. While a team member reviews this question, I'll see if I can find relevant sources for your question.
Answer
I wasn't able to find a direct answer, here are some relevant sources:
1. Add IAM Member (1)  : This shows the correct API endpoint for adding IAM members with valid roles like 
IAM_OWNER.
2. Add Organisation Member Docs references IAM_OWNER role despite not being valid (2)  : This GitHub issue explains that IAM_OWNER roles are invalid for organization member endpoints and should use instance-level endpoints instead.
To learn more, see the sources I considered:
[1] Add IAM Member
[2] Add Organisation Member Docs references IAM_OWNER role despite not being valid
Feel free to tag @Ask Inkeep with additional questions.
Got it. Tagging @Rajat for additional help.Nvm, ths is resolved -- was using the wrong API
Glad I could be helpful. Feel free to create a new thread with any new questions you may have.