My Products
Help
Exsitec-Ellinor
STARTER

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?

 

1 REPLY 1
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.