> For the complete documentation index, see [llms.txt](https://knowledgebase.autorabit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.autorabit.com/product-guides/codescan/getting-started/using-codescan/adding-projects-to-codescan.md).

# Adding Projects to CodeScan

This document provides a description about how to create a project in CodeScan.

### Minimum Permissions for the CodeScan Integration User After ECA

The CodeScan integration user requires the following minimum permissions after ECA:

* **API Enabled**
* **Modify Metadata**
* **View Setup**
* **View Roles**
* **Customize Application**
* **Manage Custom Permissions**
* **View All Data**

You can find all these permissions under Profile > Administrative Permissions in Salesforce.

We recommend granting **View All Data** whenever possible to help ensure that the integration functions smoothly.

If **View All Data** cannot be granted due to your organization’s security requirements, the CodeScan integration user must instead be granted access to the required objects and fields based on your organization’s security model and requirements.

{% hint style="info" %}
This permissions guidance applies **after ECA**.
{% endhint %}

### Prerequisites <a href="#prerequisities" id="prerequisities"></a>

You will need a CodeScan organization to add a project to it. When signing up with [CodeScan Cloud](https://www.codescan.io/products/cloud/), an organization is created automatically under your username. New organizations can be created at any time using the '**+**' icon at the top-right corner of the screen.

<figure><img src="/files/o7bKcCeI8dI9MgN9EhXp" alt="" width="563"><figcaption></figcaption></figure>

### Adding a Project into CodeScan <a href="#adding-a-project-into-codescan" id="adding-a-project-into-codescan"></a>

To be able to analyze code in CodeScan, you need to add a project first. This can easily be done by following the procedures below.

1. Log in to the CodeScan account.
2. On the top-right corner, click on the **`+`** icon and select **`Analyze new project`**.
3. Choose the **`Organization`** for which you'd like to create a project. Click **`Set Up`**.
4. In the next window, click on **`Add Analysis Project`**.
5. On the next screen, select from the applications displayed to add a new analysis project. You will be redirected to an authentication page to authorize CodeScan to access your source code.

> CodeScan allows adding projects from:
>
> 1. [Salesforce](https://knowledgebase.autorabit.com/codescan/docs/adding-new-salesforce-project-to-codescan)
> 2. [GitHub](https://knowledgebase.autorabit.com/codescan/docs/add-a-project-to-codescan-from-github)
> 3. [Atlassian Bitbucket](https://knowledgebase.autorabit.com/codescan/docs/add-a-project-to-codescan-from-bitbucket)
> 4. [Gitlab](https://knowledgebase.autorabit.com/codescan/docs/add-a-project-to-codescan-from-gitlab)
> 5. [Git](https://knowledgebase.autorabit.com/codescan/docs/add-a-project-to-codescan-from-git)
> 6. [Webhooks](https://knowledgebase.autorabit.com/codescan/docs/codescan-webhooks)

The detailed instructions to add a project from each of the above-mentioned applications are covered separately.

{% hint style="info" %}
**NOTE**: Issues across projects cannot be compared.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://knowledgebase.autorabit.com/product-guides/codescan/getting-started/using-codescan/adding-projects-to-codescan.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
