My Products
Help
Exsitec-Ellinor
CONTRIBUTOR *

Invalid_scope when fetching access token with postman

by Exsitec-Ellinor

Hi,

 

I have followed your instructions for creating application, new integration and user in developer portal and nxt application and was now going to try via postman, but i get invalid_scope error. What could be wrong? Can it be the access-group? How should the accesgroup be setup in that case?

 

5 REPLIES 5
Exsitec-Ellinor
CONTRIBUTOR *

by Exsitec-Ellinor

Thank you, I was a bit too quick because I saw that the integration hadn't been approved yet, so now I can fetch access-tokens but now I get this error when I try to make a query: 

Error: Authenticate failed: User does not exist in database.
What might I have missed in the setup?
Arnstein By
VISMA

Have you added the user in BNXT as described here? https://docs.business.visma.net/docs/authentication/service/vbnxt_service

Exsitec-Ellinor
CONTRIBUTOR *

Hi, I realised I missed a step, thank you!

omelhus
PARTNER

by omelhus

The correct scope for user authentication is "business-graphql-api:access-group-based", and for service auth it's "

business-graphql-service-api:access-group-based".
 
I've seen that some places in the documentation there's references to scopes used for Vismas internal staging environment.
 
Also remember that there's different endpoints for user and service. Use https://business.visma.net/api/graphql for user and https://business.visma.net/api/graphql-service for service auth.

by Marius Bancila

Thanks for reporting the problem in the docs. It's fixed now.