Code for Meeting creation (Graph application)

Manage BU 25 Reputation points
2025-06-11T05:06:10.2166667+00:00

I'm building a .NET and need to set up a Microsoft Teams meeting directly through code. Is there a way to automatically obtain the clientId and tenantId without having to configure them manually in M365 portals ?

Microsoft Teams | Development
0 comments No comments
{count} vote

Accepted answer
  1. Michelle-N 2,250 Reputation points Microsoft External Staff Moderator
    2025-06-11T08:22:19.5666667+00:00

    Hi @Manage BU

    Following our discussion, I understand your goal is to programmatically create Microsoft Teams meetings using a .NET application, and that the main challenge was clarifying the initial setup for the required credentials. As a moderator, I don't have the developer tools and resources to create a suitable lab environment from my end. However, from my research, I have found a guide with a verified solution that is very similar to your use case and has worked for other users. 

    New Teams meeting by .net code - Microsoft Q&A 

    Note: You should remove any hard-coded clientSecret you see in the sample code.   

    Please give those troubleshooting steps a try. If the problem remains, I would then kindly suggest that you escalate this matter to the Microsoft Technical Community for the most efficient help. They have the necessary tools and expertise to investigate such problems at a deeper level. 

    Category: Microsoft Teams | Microsoft Community Hub

    User's image

    I appreciate your understanding and patience in this matter. Please know that I have done my best to assist you within the scope of my capabilities.  


    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.  


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.