Planner create API with Group Id is not working

Khandakar Rashed Hassan 40 Reputation points
2024-12-03T06:36:27.6333333+00:00

I am creating a Planner with Planner create API. For business reason I also have to create a new group and create the planner under the new group. It was working fine until the new Planner update. Now even though I am supplying the groupId, the planner does not create under it and the group members can not access it. Is there any work around for this?

Here is how I am creating a planner,

PlannerPlan requestBody = new()

{

Container = new PlannerPlanContainer

{

Url = $"https://graph.microsoft.com/v1.0/groups/{groupId}",

},

Title = title,

};

var result = await _graphServiceClient.Planner.Plans.PostAsync(requestBody);

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2024-12-03T09:07:27.4766667+00:00

    Hello Khandakar Rashed Hassan,

    Thank you for reaching out to Microsoft Support!

    According to your question, we have conducted a test, the test results are as follows, the operation is successful.

    Screenshot 2024-12-03 090349

    For your problem, please do the following check:

    User's image

    If not, please share the details of your error request, and we will further help you analyze and solve the problem.

    Reference document:

    https://learn.microsoft.com/en-us/graph/api/planner-post-plans?view=graph-rest-1.0&tabs=http

    Hope this helps.

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

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.