Forum Discussion
sharda760
Jan 30, 2024Copper Contributor
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.
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