Forum Discussion

sharda760's avatar
sharda760
Copper Contributor
Jan 30, 2024

Issue with graph API call “provision email” in private channel.

Description : We are having issue with graph API call which was working fine till week back.

 

We provided required consent but still getting following issue (“Forbidden”).Please see the screen shot below for more details.

https://graph.microsoft.com/v1.0/teams/cfbe625b-7ae4-47cc-95f0-d80e034aa4e3/channels/19:c56bca3a30a7495eb1853d5c29b11311@thread.tacv2/provisionEmail

 

Also tried the c# client  which gives same error.

var gsc = utility.GetGraphServiceClientByUserCredential();
 
var channels = await graphServiceClient.Teams[TeamGUID].Channels.GetAsync((requestConfiguration) =>
{
requestConfiguration.QueryParameters.Filter = "displayName eq 'XXXXXX'";
requestConfiguration.Headers.Add("Prefer", "allowthrottleablequeries");
});
if (channels != null && channels.Value != null && channels.Value.Count == 1)
{
await gsc.Teams[TeamGUID].Channels[channels.Value[0].Id].ProvisionEmail.PostAsync();
 
}

 

No RepliesBe the first to reply

Resources