# Troubleshooting "Insufficient Resource Permissions" when uploading runs with BaseSpace CLI

**Background**

Previous versions of the BaseSpace CLI (1.2.0 and below) application lack permissions (scopes) to upload (create) runs when authenticating. Running the command below without the proper permissions will result in the error message that follows:

$ bs upload run -n Test -t NextSeq\
ERROR: BASESPACE.COMMON.INSUFFICIENT\_RESOURCE\_PERMISSIONS: Sorry but this requires CREATERUN access to this resource.

**Solution:**

To add the proper scope, use the the bs auth command along with the --force option to re-authenticate and overwrite the existing config file. Be sure to include all existing scopes as well. The set of commands will help with printing existing scopes and adding the new scope:

$ bs auth --force --scopes "READ GLOBAL, CREATE GLOBAL, BROWSE GLOBAL, CREATE PROJECTS, START APPLICATIONS, MOVETOTRASH GLOBAL, WRITE GLOBAL, CREATE RUNS"

**Note:** Even though the error message displays "CREATERUN" permission, the correct scope is "CREATE RUNS".

After adding the necessary scope for uploading runs, the list of scopes should look like this list:

![](/files/3zIhKgJ4wFUhXDU3zBgy)

\
\
\ <br>

|                                                                                                                                                                                                                                                                                                                                                                        |
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| *For any feedback or questions regarding this article (Illumina Knowledge Article #3377), contact Illumina Technical Support* [*techsupport@illumina.com*](mailto:techsupport@illumina.com?subject=Question%2FFeedback%20Regarding%20Illumina%20Knowledge%20Article%20#000003377%20-%20Instrumentation%20\&body=Dear%20Illumina%20Technical%20Support,%0D%0A%0D%0A)*.* |


---

# Agent Instructions: 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:

```
GET https://knowledge.illumina.com/instrumentation/general/instrumentation-general-troubleshooting-list/000003377.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
