Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Web API for getting users Permissions

ANSWERED

Hello Community,  I am looking for the Web API that will return list of permission allowed by the users.
While connecting the Fitbit App users can select the permission. I want to get these permissions users have selected. 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Hi @Web-Api 

 

By permissions, I'm assuming you mean the scopes or data types that the user selects during the consent flow.   For example, on this screen.

 

oauth-2-0-consent-screen-ea3e6c30e29a86de44d78d45d597b5e9.png

 

When the user completes the consent flow and your application receives the access token and refresh token, you should also receive the list of scopes the user consented to share.   Or, you can call the Introspect endpoint against a valid access token to see the scopes which were consented.

 

Gordon

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

View best answer in original post

Best Answer
1 REPLY 1

Hi @Web-Api 

 

By permissions, I'm assuming you mean the scopes or data types that the user selects during the consent flow.   For example, on this screen.

 

oauth-2-0-consent-screen-ea3e6c30e29a86de44d78d45d597b5e9.png

 

When the user completes the consent flow and your application receives the access token and refresh token, you should also receive the list of scopes the user consented to share.   Or, you can call the Introspect endpoint against a valid access token to see the scopes which were consented.

 

Gordon

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer