How can I create todo task for another user via microsoft graph

Sivaraman, Giridharan 0 Reputation points
2023-02-22T12:18:49.8866667+00:00

POST /users/{id|userPrincipalName}/todo/lists/{todoTaskListId}/tasks

can I use id of person I want to assign to do task in the above url?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,309 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-02-22T17:45:35.09+00:00

    Hello @Giridharan Sivaraman ,
    Thanks for reaching out.
    As per the documentation, you can create todoTaskList for a user with user-id with application permission using the below endpoint:
    POST /users/{id|userPrincipalName}/todo/lists

    You can query all the users in your tenant using this endpoint GET https://graph.microsoft.com/v1.0/userswhere as the response contains id and that can be used to request the /users/{id|userPrincipalName}/todo/lists/{todoTaskListId}/tasks endpoint.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.