<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can't add new users to BIM 360 project in BIM 360 API Forum</title>
    <link>https://forums.autodesk.com/t5/bim-360-api-forum/can-t-add-new-users-to-bim-360-project/m-p/14007265#M2096</link>
    <description>&lt;P&gt;Hey!&lt;BR /&gt;&lt;BR /&gt;I know it's late but I'll post my case anyway.&lt;BR /&gt;I got this exact error, but for me the problem was that I tried to add users to an &lt;STRONG&gt;archived&lt;/STRONG&gt; project. So I recommend to anyone to check the project status and with the rest of required parameters and body that everything is well written and that they actually exist in the platform.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;</description>
    <pubDate>Fri, 06 Feb 2026 11:50:28 GMT</pubDate>
    <dc:creator>rserrtal</dc:creator>
    <dc:date>2026-02-06T11:50:28Z</dc:date>
    <item>
      <title>Can't add new users to BIM 360 project</title>
      <link>https://forums.autodesk.com/t5/bim-360-api-forum/can-t-add-new-users-to-bim-360-project/m-p/10859695#M293</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m using this request to post new users to the project&lt;/P&gt;&lt;P&gt;&lt;A href="https://forge.autodesk.com/en/docs/bim360/v1/reference/http/projects-project_id-users-import-POST/" target="_blank"&gt;https://forge.autodesk.com/en/docs/bim360/v1/reference/http/projects-project_id-users-import-POST/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works well with ACC projects and not with BIM 360 projects.&lt;/P&gt;&lt;P&gt;I’ve highlighted the projects below. I can’t add new users to these projects. But I can do it to other projects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture1.png" style="width: 404px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1007700i498F350207E64D72/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture1.png" alt="Picture1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what the API returns me when I failed to add new users&lt;/P&gt;&lt;P&gt;&amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "failure": 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "success": 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "success_items": [],&lt;/P&gt;&lt;P&gt;&amp;nbsp; "failure_items": [&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "email": "gt25@amec.co.il",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "industry_roles": ["60364cf9-4e20-440f-be15-c98ec806dcd7"],&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "company_id": "d2347313-c2d6-4bdd-a352-5343803ce2b5",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "services": {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "document_management": {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "serviceName": "document_management",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "access_level": "user"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "errors": [&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { "code": 2000, "message": "undefined method `id' for nil:NilClass" }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ],&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "project_id": "87e831e4-b77a-4044-93e8-206541981800",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "account_id": "73f0d205-ba4b-4745-be42-69a10979b3f2"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I use to post new users&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt; /// &amp;lt;summary&amp;gt;
        /// Post multiple new users to BIM 360
        /// &amp;lt;/summary&amp;gt;
        /// &amp;lt;param name="projectId"&amp;gt;Project id&amp;lt;/param&amp;gt;
        /// &amp;lt;param name="adminUserId"&amp;gt;Admin user id&amp;lt;/param&amp;gt;
        /// &amp;lt;param name="users"&amp;gt;Users to post&amp;lt;/param&amp;gt;
        /// &amp;lt;param name="succeedUsers"&amp;gt;Users that succeed to add&amp;lt;/param&amp;gt;
        /// &amp;lt;param name="failedUsers"&amp;gt;Users that failed to add&amp;lt;/param&amp;gt;
        /// &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;
        public IRestResponse PostUsersToProjectImport(string projectId, string adminUserId, List&amp;lt;BIM360ProjectUserPostImport&amp;gt; users,
                                            ref List&amp;lt;BIM360ProjectUserPostImport&amp;gt; succeedUsers,
                                            ref List&amp;lt;BIM360ProjectUserPostImport&amp;gt; failedUsers)
        {
            var request = new RestRequest(Method.POST);

            request.Resource = BIM360Urls.Instance.UrlToPostProjectUsersImport;
            request.AddParameter("AccountId", ForgeOptions.Instance.AccountId, ParameterType.UrlSegment);
            request.AddParameter("ProjectId", projectId, ParameterType.UrlSegment);

            JsonSerializerSettings settings = new JsonSerializerSettings();
            settings.NullValueHandling = NullValueHandling.Ignore;
            string serviceString = JsonConvert.SerializeObject(users, settings);
            request.AddParameter("application/json", serviceString, ParameterType.RequestBody);

            request.AddHeader("cache-control", "no-cache");
            request.AddHeader("x-user-id", adminUserId);
            request.AddHeader("authorization", $"Bearer {BIM360Auth.Instance.Token}");
            request.AddHeader("Content-Type", "application/json");

            RequestService requestService = new RequestService();
            IRestResponse response = requestService.ExecuteRequest(ForgeOptions.Instance.Client, request);

            BIM360ProjectUserPostImportResponse usersResponse = JsonConvert.DeserializeObject&amp;lt;BIM360ProjectUserPostImportResponse&amp;gt;(response.Content, settings);

            succeedUsers.AddRange(usersResponse.success_items);
            List&amp;lt;BIM360Company&amp;gt; companies = BIM360Company.LoadCompanies();
            BIM360Project project = BIM360HubData.Instance.BIM360Projects.FirstOrDefault(p =&amp;gt; p.id.ToUpper().Equals(projectId.ToUpper()));

            foreach (BIM360ProjectUserPostImport userAddedSuccess in usersResponse.success_items)
            {
                BIM360Company company = companies.FirstOrDefault(c =&amp;gt; c.Id?.ToUpper() == userAddedSuccess.company_id?.ToUpper());
                LogItem logItem = LogData.AddMessageNormal($"User {userAddedSuccess.email} added successfully");
                logItem.ProjectUserSuccessFailInfo = new ProjectUserSuccessFailInfo(userAddedSuccess?.email, company?.Name, project?.Name);
                ApplicationLog.SuccessfullyAddUser(userAddedSuccess, company, project);

                userAddedSuccess.Project = project;
            }

            failedUsers.AddRange(usersResponse.failure_items);
            foreach (BIM360ProjectUserPostImport userFailed in usersResponse.failure_items)
            {
                string errorInfo = string.Empty;
                foreach (var error in userFailed.errors)
                {
                    errorInfo += $"Fail to add user {userFailed.email}, error {error}{Environment.NewLine}";
                }
                BIM360Company company = companies.FirstOrDefault(c =&amp;gt; c.Id.ToUpper() == userFailed.company_id?.ToUpper());
                LogItem logItem = LogData.AddMessageError(errorInfo);
                logItem.ProjectUserSuccessFailInfo = new ProjectUserSuccessFailInfo(userFailed?.email, company?.Name, project?.Name);
                ApplicationLog.FailToAddUser(userFailed.email, project.Name, errorInfo);

                userFailed.Project = project;
            }

            return response;
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 15:04:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/bim-360-api-forum/can-t-add-new-users-to-bim-360-project/m-p/10859695#M293</guid>
      <dc:creator>spavlovitsky</dc:creator>
      <dc:date>2022-01-05T15:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add new users to BIM 360 project</title>
      <link>https://forums.autodesk.com/t5/bim-360-api-forum/can-t-add-new-users-to-bim-360-project/m-p/14007265#M2096</link>
      <description>&lt;P&gt;Hey!&lt;BR /&gt;&lt;BR /&gt;I know it's late but I'll post my case anyway.&lt;BR /&gt;I got this exact error, but for me the problem was that I tried to add users to an &lt;STRONG&gt;archived&lt;/STRONG&gt; project. So I recommend to anyone to check the project status and with the rest of required parameters and body that everything is well written and that they actually exist in the platform.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2026 11:50:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/bim-360-api-forum/can-t-add-new-users-to-bim-360-project/m-p/14007265#M2096</guid>
      <dc:creator>rserrtal</dc:creator>
      <dc:date>2026-02-06T11:50:28Z</dc:date>
    </item>
  </channel>
</rss>

