private List <string> GetIndustryRoleIds(BimProject proj, List <string> roles, string accountId)
        {
            BimProjectsApi      _projectsApi  = new BimProjectsApi(GetToken, _options);
            List <IndustryRole> rolesFromProj = new List <IndustryRole>();
            List <string>       roleIds       = new List <string>();

            if (roles == null)
            {
                roles = new List <string>();
                roles.Add(_options.AdminRole); // Default: VDC Manager. For CLI.
            }

            _projectsApi.GetIndustryRoles(proj.id, out rolesFromProj, accountId);

            if (rolesFromProj == null || rolesFromProj.Any() == false)
            {
                Log.Warn($"- Couldn't get any project industry roles for project '{proj.name}'");
                return(null);
            }

            foreach (string role in roles)
            {
                string roleId = rolesFromProj.Find(x => x.name == role).id;
                if (role != null)
                {
                    roleIds.Add(roleId);
                }
            }

            return(roleIds != null ? roleIds : null);
        }
        public static List <IndustryRole> GetProjectRoles(string projId, string accountId)
        {
            if (projId == null)
            {
                Log.Error("TempContainer.GetProjectRoles(): Project Id not provided.");
                return(null);
            }
            if (_options == null)
            {
                Log.Error("TempContainer.GetProjectRoles(): Option not provided.");
                return(null);
            }

            BimProjectsApi      _projectsApi = new BimProjectsApi(GetToken, _options);
            List <IndustryRole> roles        = new List <IndustryRole>();

            _projectsApi.GetIndustryRoles(projId, out roles, accountId);
            return(roles);
        }