# Ability to set-up / manage SonarCloud Analysis token should be separate from overall Project Administration

**URL:** <https://community.sonarsource.com/t/ability-to-set-up-manage-sonarcloud-analysis-token-should-be-separate-from-overall-project-administration/53944>\
**Category:** SonarQube Cloud\
**Created:** [November 29, 2021, 7:10pm UTC](https://community.sonarsource.com/t/ability-to-set-up-manage-sonarcloud-analysis-token-should-be-separate-from-overall-project-administration/53944 "2021-11-29T19:10:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rick-at-KUBRA](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/rick-at-kubra/32/1915_2.png) [@Rick-at-KUBRA](https://community.sonarsource.com/u/Rick-at-KUBRA)\
**Post date:** [November 29, 2021, 7:10pm UTC](https://community.sonarsource.com/t/ability-to-set-up-manage-sonarcloud-analysis-token-should-be-separate-from-overall-project-administration/53944/1 "2021-11-29T19:10:09Z")

</div>

We are using the current version of SonarCloud linked to our Github repositories. I presume that like many other companies, we give our developers a fair amount of runway to get their jobs done easily, but within SonarCloud there are project-administration features that we do prefer to be managed by team-leads or managers.

One thing that is a bit of an annoyance for us is that it is not currently possible for a non-project-administrator to configure our CI/CD tool (TravisCI or CircleCI etc) to run a Sonar analysis and report back to SonarCloud because the project’s secret token is ONLY able to be accessed by users who have project-level “Administer” permissions even if they have “Execute Analysis” permissions.

Ideally it’d be great if you have access to at least view the token on the “Information” page in the project if you’re allowed to “Execute Analysis” for that project. That way we could give our engineers the ability to grab that token and set up CI/CD as-needed without either giving them the “Administer” permission level or making them wait on their manager to retrieve and send them the token from the SonarCloud administration pages.

Let me know if I’m off-base here.

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [November 30, 2021, 2:06pm UTC](https://community.sonarsource.com/t/ability-to-set-up-manage-sonarcloud-analysis-token-should-be-separate-from-overall-project-administration/53944/2 "2021-11-30T14:06:11Z")

</div>

Hey Rick.

I think something that needs to be clarified here is that tokens are tied to **users** , not to **projects** , and a quick test allowed me to configure analysis for a project while only having the **Execute Analysis** permissions.

You’re right – for a project that **has been** configured, there’s no way to retrieve that original token (which is good, because it’s basically equivalent to a password for the user who it was generated before). However, nothing stops your user with the correct permissions from provisioning a new token for their account to use.

---

<div class="post-metadata">

**Author:** ![Rick-at-KUBRA](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/rick-at-kubra/32/1915_2.png) [@Rick-at-KUBRA](https://community.sonarsource.com/u/Rick-at-KUBRA)\
**Post date:** [November 30, 2021, 4:48pm UTC](https://community.sonarsource.com/t/ability-to-set-up-manage-sonarcloud-analysis-token-should-be-separate-from-overall-project-administration/53944/3 "2021-11-30T16:48:58Z")

</div>

![Screen Shot 2021-11-30 at 9.46.46 AM](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/2/7/270e4c3a744302ae1c47c2670a6f5dc68288f438.png)

So this type of analyze-project token can be gathered/set/generated without having access to the Administration menu of a project? I’d ask how you would get to this type of configuration page on a project without “Administer” access.

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [December 3, 2021, 8:36am UTC](https://community.sonarsource.com/t/ability-to-set-up-manage-sonarcloud-analysis-token-should-be-separate-from-overall-project-administration/53944/4 "2021-12-03T08:36:28Z")

</div>

That’s a fair point Rick – for those users without Admin permissions on the project, those tutorials would only be available at the time of project creation before the first analysis.

I’m curious about this point –

> [@Rick-at-KUBRA](#):
>
> but within SonarCloud there are project-administration features that we do prefer to be managed by team-leads or managers.

Can you clarify what those specific features are? That would be really insightful for us.

---

<div class="post-metadata">

**Author:** ![Rick-at-KUBRA](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/rick-at-kubra/32/1915_2.png) [@Rick-at-KUBRA](https://community.sonarsource.com/u/Rick-at-KUBRA)\
**Post date:** [January 12, 2022, 9:25pm UTC](https://community.sonarsource.com/t/ability-to-set-up-manage-sonarcloud-analysis-token-should-be-separate-from-overall-project-administration/53944/5 "2022-01-12T21:25:51Z")

</div>

I guess what I mean is that ideally the ability to create a token needed to perform analysis would be tied directly to the permission to “Execute Analysis” which I have granted to individual engineers. Other permissions like Administering Issues, Security Hotspots, and Project Settings we may want to leave to team leads / managers and other administrators - not just to prevent individuals from saying bugs or security problems are fixed when they aren’t, but also to limit the cognitive load on our developers.

 ![Screen Shot 2022-01-12 at 2.22.30 PM](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/5/8/58c6210d9b50239e075def08093a179fe6bde70b.png)
