How do I add a user with write permission to a project using the API? These are the docs I’ve referenced.
My project is public to the team and the team has comment only permission. I want to add specific users who then have write access. It looks like the data payload sent to the addmembersforproject endpoint only accepts a string for the “members” property and the default permission applied to those users is the level of permission that was applied to the team. In other words, since the team has comment only permission. any users added will have comment only. When I change the team to have write permission, new users added to the project have write permission. I’ve tried adding property “write_access” with a value of “full_write”, which would be in line with what is returned from a call to the project_memberships endpoint, but that didn’t work.
I could see a workaround being that I have to temporarily change the team permission while adding new users, but I don’t see how to do that programmatically.
Another workaround would be to update each user’s membership gid after they’ve been added to the project, but it doesn’t look like that kind of update is exposed in the API, either.