cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Pokora22
New Member

Teams tab creation through Graph API (Missing role permissions on the request)

Hi all,

 

I've been trying to add OneNote as a tab to all newly created channels within teams. I'm using REST API calls as per tutorial I can no longer find. I've got an app registered in AAD with the following permissions:

Screenshot 2021-11-18 115942.png

 

I need to use delegated (work account) permissions due to company rules. 

 

I've tried calling the API using two ways of authorization: 

AD OAuth in advanced options of the connector like this:

vivaldi_OHDi5o1wGh.png

And getting the token separately before and attaching it as header with the request:

vivaldi_ZEHixwMDQa.png

 

 

(Please ignore the body of the tab for now, it was copied straight from the tutorial - unless it could mess with permissions?)

 

Both ways I'm getting a 403 error:  

 

Missing role permissions on the request. API requires one of 'TeamsTab.Create, TeamsTab.ReadWriteForTeam.All, TeamsTab.ReadWrite.All, Group.ReadWrite.All, Directory.ReadWrite.All, TeamsTab.Create.Group'. Roles on the request ''. Resource specific consent grants on the request ''.

 

 

Honestly no idea what I'm doing wrong. Something else I need to add to the app registration? Does it not actually work with delegated permissions (even though the documentation says it should)?

 

I've looked around and could not find anything very relevant so I'll appreciate any help!

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @Pokora22 ,

 

If you use http action , you need to use application permission rather than delegated permission.

If you want to use delegated permission, you should create a custom connector instead of using http action.

The steps to create a custom connector are similar to http action , and they require similar parameters.

 

Best Regards,

Wearsky

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @Pokora22 ,

 

If you use http action , you need to use application permission rather than delegated permission.

If you want to use delegated permission, you should create a custom connector instead of using http action.

The steps to create a custom connector are similar to http action , and they require similar parameters.

 

Best Regards,

Wearsky

View solution in original post

Helpful resources

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Kudoed Authors
Users online (1,419)