Skip to main content

In dev, it works. In prod i was having “access is denied” error. After sharepoint auth connection token was activated, i started to have "credentials couldnt be found in credential vault” Why is that? How to solve it?

Hi ​@Semih 3318,

 

Make sure that your Runner user is the Consumer of the Credential vault in order to use the credentials. 

If the Consumer role is missing, then the credentials won't be accessible by the runner user.


@Padmakumar i dont understand. Because sharepoint package  only needs Authenticate step. And its only about OAuth connection. ProviderType-Connectionname-Token type
where are credentials? there is no credential or consumer here as i know


@Padmakumar i dont understand. Because sharepoint package  only needs Authenticate step. And its only about OAuth connection. ProviderType-Connectionname-Token type
where are credentials? there is no credential or consumer here as i know

 

Credential can be anything. Like Username& Password, Access token, API Key etc.

In your case, the Token must be the credential that the bot is trying to retrieve from the vault. In the Dev environment, the runner must have access to the same, which is why the execution is working there. 

Whereas in Prod, the access is missing, due to which the execution is failing. So, as I have mentioned, you need to provide Consumer role to your Bot runner user to access the Credentials (Token).

 

 

There is one more possibility here, which is that the Vault or Credential itself is missing. In this case, you need to create the same one similar to your Dev instance.


@Semih 3318 if Padmakumar helped you solve the issue, please mark it as best answer!


@Shreya.Kumar  the answer is the sharepoint authentication must be refreshed by the user’s controlroom whoever wants to use it.
Since i was not admin of the vdi, i thought it was being authenticated by global team. But when i refreshed token and activated it, started to work expectedly