- Try repro the issue outside of your code, by making the same call in Microsoft Graph explorer and the above user
- See whether you provided the necessary permissions for the user
- Validate the token using https://jwt.ms and see it contains scopes/permissions rightly set for the user or not.
Microsoft.Graph todo tasks
i have register a application and the permissions are already set
but when I get the todo tasks list, an error occured
the error message are as follow
Code: notAllowed
Message: Access is denied to the requested resource. The user might not have enough permission.
Inner error:
Code: ErrorAccessDenied
Message: Access is denied. Check credentials and try again.
what can i do
new GraphServiceClient(
new DelegateAuthenticationProvider(
async (requestMessage) =>
{
requestMessage.Headers.Authorization =
new AuthenticationHeaderValue("Bearer", 'access_token get by username and password');
}));
var events = await GetAuthenticatedClient().Me.Todo.Lists.Request().GetAsync();
IEnumerable<TodoTaskList> todoLists = events.CurrentPage;
3 answers
Sort by: Most helpful
-
Deva-MSFT 2,266 Reputation points Microsoft Employee
2021-01-21T13:26:13.783+00:00 -
-
Deva-MSFT 2,266 Reputation points Microsoft Employee
2021-02-04T18:34:51.193+00:00 I see that you're trying to create new tasks in TODO workload using Application permission. Correct me if i am wrong. Please note that application permission is not supported for creating new tasks in TODO workload.