FilesFolder is not created automatically for newly created private channels

Matthias Habegger 0 Reputation points
2024-04-15T07:49:14.8733333+00:00

When I create a new private channel and then try to get the FilesFolder, it is always null. Even a few hours after creation, the FilesFolder is still null. It will only be created, when a user manually clicks on the Files tab in Microsoft Teams.

Expected behavior

One of the following behavior is expected:

  • The FilesFolder should automatically created after the private channels creation
  • There should be an operation to create the FilesFolder of a private channel by Microsoft Graph Api

Actual behavior

FilesFolder always stays null. There is no possibility to get access to the FilesFolder of a private channel without manual interaction. E.g. when you want to create a new private channel and then create a folder structure like that:

Steps to reproduce the behavior

  1. Create new Channel
Channel channel = await graphServiceClient.Teams[teamId].Channels.PostAsync(new Channel
  {
  DisplayName = "My Private Channel",
  MembershipType = ChannelMembershipType.Private
  });
  1. Get FilesFolder of the newly created channel
DriveItem filesFolder = await graphServiceClient.Teams[teamId].Channels[channel.Id].FilesFolder.GetAsync();
  1. Further operations with the FilesFolder (not possible due to "filesFolder" is always null)
string driveId = filesFolder.ParentReference.DriveId; 
DriveItem createdFolder = await graphServiceClient.Drives[driveId].Items[filesFolder.Id].Children.PostAsync(new DriveItem {   Name = "My Folder",   Folder = new Microsoft.Graph.Folder() });


I moved this issue from https://github.com/microsoftgraph/msgraph-sdk-serviceissues/issues/30 because they are closing that repository.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,102 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,618 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. LiweiTian-MSFT 14,370 Reputation points Microsoft Vendor
    2024-04-15T08:46:45.4966667+00:00

    Hi @Matthias Habegger

    Teams tag is mainly focused on the general issue of Microsoft Teams troubleshooting. Since your question is related to Graph API , which is not in our support scope. The following suggestion is just for your reference:

    According to our research, some users are facing the same issue, to fix this problem more quickly, you can send a feedback directly to Microsoft Feedback to add it in future updates.

    Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future.

    Meanwhile, you can contact phone support for more detailed assistance.

    User's image

    Thanks for your understanding and support.


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

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.