<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Rest API: Adding a user to a project (Thread)</title><description> Ive been trying to use the rest API to add a user to a project he is not member of but have not succeeded so far.  I have a system administrator user and in Spiraplan can add any user to a project.  When i try to use my user to authenticate via the rest API to add my own user to a new project i get a response of unauthorized  So with the username and api-key of user 194 i do a post to projects/ + projects + /users with a project I am not member of  with as data the user 194 and a project role and the project id  But when i do this I get a unautherized     I also tried to get the users in a project I am member of and this works but if i try to get the users of a project I am not member of this does not work.  Can you help me figure out what is going wrong? </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spiraplan/issues-questions/2690.aspx</link><item><guid isPermaLink="false">threadId=2690</guid><author>Waudru Volders (wvol@newtec.eu)</author><title>Rest API: Adding a user to a project</title><description> Ive been trying to use the rest API to add a user to a project he is not member of but have not succeeded so far.  I have a system administrator user and in Spiraplan can add any user to a project.  When i try to use my user to authenticate via the rest API to add my own user to a new project i get a response of unauthorized  So with the username and api-key of user 194 i do a post to projects/ + projects + /users with a project I am not member of  with as data the user 194 and a project role and the project id  But when i do this I get a unautherized     I also tried to get the users in a project I am member of and this works but if i try to get the users of a project I am not member of this does not work.  Can you help me figure out what is going wrong? </description><pubDate>Wed, 12 Oct 2022 15:14:26 -0400</pubDate><a10:updated>2022-10-12T15:28:06-04:00</a10:updated><link>/Support/Forum/spiraplan/issues-questions/2690.aspx</link></item><item><guid isPermaLink="false">messageId=5758</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> Please could you send us a  support ticket  with the full API body and also how you are authenticat</title><description> Please could you send us a  support ticket  with the full API body and also how you are authenticating.    </description><pubDate>Wed, 12 Oct 2022 15:20:09 -0400</pubDate><a10:updated>2022-10-12T15:20:09-04:00</a10:updated><link>/Support/Forum/spiraplan/issues-questions/2690.aspx#reply5758</link></item><item><guid isPermaLink="false">messageId=5759</guid><author>Waudru Volders (wvol@newtec.eu)</author><title> Will send a support ticket. Authentication is via username/api-key in header </title><description> Will send a support ticket. Authentication is via username/api-key in header </description><pubDate>Wed, 12 Oct 2022 15:28:06 -0400</pubDate><a10:updated>2022-10-12T15:28:06-04:00</a10:updated><link>/Support/Forum/spiraplan/issues-questions/2690.aspx#reply5759</link></item></channel></rss>