Graph API getting a scope error when trying to get Oauth Token

James T
Tera Contributor

Setting up integration hub for Graph API per instructions here.

Click get Oauth Token and get the followign error (redacted):

OAuth flow failed. Verify the configurations and try again. Error detail:invalid_scope, AADSTS70011: The provided request must include a 'scope' input parameter. The provided value for the input parameter 'scope' is not valid.

Any ideas here I'm going wrong?

1 ACCEPTED SOLUTION

James T
Tera Contributor

Fixed issue, needed to add scope profile:

https://docs.servicenow.com/bundle/orlando-application-development/page/administer/security/task/t_SpecifyAnOAuthScope.html

Name: Scope

Oauth Provider - <Name of GraphAPI Oauth Record>

Oauth Scope - https://graph.microsoft.com/.default

View solution in original post

2 REPLIES 2

James T
Tera Contributor

Fixed issue, needed to add scope profile:

https://docs.servicenow.com/bundle/orlando-application-development/page/administer/security/task/t_SpecifyAnOAuthScope.html

Name: Scope

Oauth Provider - <Name of GraphAPI Oauth Record>

Oauth Scope - https://graph.microsoft.com/.default

servicenow_live
Tera Contributor

Check this Community link to Integrate Microsoft Azure AD – Graph API to ServiceNow

 

https://community.servicenow.com/community?id=community_article&sys_id=62f47fe9db71fc547d3e02d5ca9619f5