I want to read the planner data using MS graph sdk. For authentication I have to use application type in my Azure AD. I have the client secret, client id and tenant id. The planner also has the permission for the whole tenant. I have given API permission for Group.Create, Group.Read.All, Group.ReadWrite.All, User.Read.All with admin consent granted.

I was calling the api like this,

var clientSecretCredential = new ClientSecretCredential(tenantId, clientId, clientSecret);
var scopes = new[] { "https://graph.microsoft.com/.default" };
GraphServiceClient graphServiceClient = new GraphServiceClient(clientSecretCredential, scopes);

var users = await graphServiceClient.Users.GetAsync();

    var planner = await graphServiceClient.Planner.Plans[plannerId].GetAsync(r => r.Options.WithAppOnly());
    Console.WriteLine($"Plan Id: {planner.Id}, Title: {planner.Title}");
catch (Exception ex)
    Console.WriteLine($"Error: {ex.Message}");

I was expecting to get the users list and the planner data. I got the users but for planner I got an error,
Error: You do not have the required permissions to access this item.

Now what are the permissions I require to get the planner data? or do I have to give some permission from planner end?