I try to add a member to a granted project, but I keep getting an error "PROJECT-m9gKK"
I try to add a member to a granted project, but i keep getting this error:
{"code":3,"message":"Errors.Project.Grant.Member.Invalid (PROJECT-m9gKK)","details":[{"@type":"type.googleapis.com/zitadel.v1.ErrorDetail","id":"PROJECT-m9gKK","message":"Errors.Project.Grant.Member.Invalid"}]}
The user I try to add is existing and activated. I have double checked that I use the correct Project and Grant ID; and the correct Org ID is passed as a header to the POST request. I have as well checked that I don't pass any role to the request that is not valid or not existing. Any help is more than welcome. Ref to API call details: https://zitadel.com/docs/apis/resources/mgmt/management-service-add-project-grant-memberZITADEL Docs
Members are users with permission to administrate ZITADEL on different levels. This request adds a new user to the members list on the project grant level with one or multiple roles.
6 Replies
Hey @midnattssol thanks for your question, the user sending the request has which kind of roles in the org? Is it an "IAM_OWNER"?.
Hi Im having the same issue, my pat has those roles:

hey @Elliot what version are you on? are you cloud or self hosted? what was the curl request that you are sending?.
Thanks
im using the golang sdk, latest version, and self hosted
can you please share the code snippet or any errors logs.
just in case, my users are not active (pending), and i have correctly granted the project to the organization