Forum Discussion
Adrian Tupper
Jun 05, 2023Copper Contributor
Generate Channel email address with GraphApi
Hello, I'm trying to generate Channel's email through GraphApi. It works well when I'm a member of the Teams but when I try to generate one with a Team/Channel, I'm not member of, I receive a we...
VasilMichev
Jun 05, 2023MVP
As clearly stated in the documentation, application permissions are not supported for this operation: https://learn.microsoft.com/en-us/graph/api/channel-provisionemail?view=graph-rest-1.0&tabs=http
Use delegate permissions, and make sure the user you're running under has enough permissions (being a member of the Team is usually enough).
Use delegate permissions, and make sure the user you're running under has enough permissions (being a member of the Team is usually enough).
- Adrian TupperJun 06, 2023Copper ContributorHello,
Exactly! that's why I'm using User Context instead... The problem is that I'm not a member of all the teams, I need to generate the mail for...
Do I need to add the account to all the teams before generating the email ?
Regards,
Adrian- VasilMichevJun 06, 2023MVPAfaik that's the only way.