Forum Discussion

codemainan123's avatar
codemainan123
Copper Contributor
Feb 06, 2025

Is there a way to create new App with Graph C#, as admin, without having access to clientId?

1.)

i am trying to rollout a CalendarSync to several different organizations, in an effort to reduce work by the org. admins. So to say I am looking for ways to automate the microsoft entra stuff:

like App-Creation
Manifest Editing (precisely: add permissions, change callback uris, ...)

2.)

I have seen there are several calls from Graph API c#, example to create an application. --> Which is what I need but the problem is authorization ... in every authorization i have tried by now there is only a login via tenantId+ClientId (and some use ClientSecret too)

--> But as the organization does not have any apps created how can I login via code?

3.)

Here is what I tried but i keep getting stuck because every auth method needs an app id (cleintid) and the organizations do not have any apps in entra (they are first time starting to use it)

(my working Authorization, which I use for CalendarSync flawlessly) but the problem is in the App creation i still need the clientId to logonto via graph)

 

 

1 Reply

  • The question asks if it's possible to create a new app using Microsoft Graph API with C# as an admin, but without having access to the client ID. Generally, the client ID is crucial for identifying and authorizing an application within Azure AD. However, as an admin, you may have the ability to create an app registration in Azure AD without needing the client ID upfront. The client ID is generated when you register the app, so you can later use it for API calls or client authentication. In essence, while you don't need the client ID to create the app, you'll need it for integrating the app with Graph API after registration.

Resources