Set up Microsoft Teams Graph spoke instructions are missing something

johnfeist
Mega Sage
Mega Sage

This is the first time that I'm working with Integration Hub or Oauth and I'm a bit confused.

I'm following the instructions in the documentation very carefully.  I've entered the initial data in the Application Registry.  I don't have a token revocation URL, but as that is not mandatory I don't know if I need one.

When entering the entity scopes, the column headings in the documentation differ for each object.  When I go to enter the data, they remain as Name and OAuth Scope.  As far as I can tell, I have the values entered correctly and the entity profile is created.

When I create the credential, I enter the values as described in the documentation and hit Save.  From there, I get this error:

find_real_file.png

Since I followed all the instructions and confirmed that I've entered the correct values I go ahead and click the Get OAuth Token link.  That produces the following error from Microsoft:

find_real_file.png

This raises the following questions:

  • What do I need to do to avoid getting the OAuth Access or Refresh token messages?
  • Since I'm using OOTB functionality, how do I add a name value pair to the request body and what do I use for scope?  I assume that must come from the Microsoft side?

All suggestions are gratefully appreciated.

:{)

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster
1 ACCEPTED SOLUTION

I opened a HI ticket and between the support engineer and one of my colleagues who supports Azure it turned out to be an issue with what values were included in some of the URLs.  The strange message still appeared when I set up the credentials, but I got a token and that message was replaced with an acknowledgement that there was a token and it's expiry.

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster

View solution in original post

13 REPLIES 13

Hi Ashutosh,

Per the documentation, I selected:

find_real_file.png

From there, the system created this profile

find_real_file.png

Here are the scope details

find_real_file.png

I didn't include offline_access as a profile scope because in one of my attempts, I had that as the first scope and MSFT came back with that not being valid.

Thank you for taking the time to help me get this right.

:{)

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster

So you are consuming the oAuth of the third party tool and not severing servicenow as oAuth provider.

I need to check on this.


-Ashutosh

I opened a HI ticket and between the support engineer and one of my colleagues who supports Azure it turned out to be an issue with what values were included in some of the URLs.  The strange message still appeared when I set up the credentials, but I got a token and that message was replaced with an acknowledgement that there was a token and it's expiry.

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster

HI,

So in short the issue was somewhere with the token.

 

Great