Graph API
5 TopicsGraph API getAsync() in C#
If I use graph in a console application I get the information that I request. Such as test = await graphClient.Users.GetAsync(); If I try this in a WebMethod in the code behind of a page or in an .asmx, it never returns with the data. I know this has been mentioned before in many forums, but I did not have issues in V1.0 of the SDK. When I try to use V5+ I can't seem to get the information back. Any ideas on overcoming the issue? Any help would be great.33Views0likes1CommentCalling MGGraph V2 without -AsPlainText parameter
Like many other people after Graph was updated to V2 I started getting this error Cannot bind parameter 'AccessToken'. Cannot convert the *** value of type "System.String" to type "System.Security.SecureString". And to fix it was told to use something like this Connect-MgGraph -AccessToken ($graphApiToken |ConvertTo-SecureString -AsPlainText -Force) Which does work. However my problem is that every solution I've found requires using the -AsPlainText parameter which of course presents an obvious security issue and Microsoft recommends not using it. But if I just remove that parameter from my code and use something like this -token ($token | ConvertTo-SecureString -Force) I get this error Exception : System.FormatException: Input string was not in a correct format. Is there a way to convert this token correctly without using -AsPlainText?1.5KViews0likes0CommentsAzure Event Grid Partner (for Graph API)
Full story: I wanna use Azure Event grid to subscript to Graph changes (specific - teams message creations/updates). If I understand it correctly, I have to create a Microsoft Graph API Partner Topic. Or as it's stated in the documentation -> I have to Authorize Microsoft Graph API to create a partner topic. My problem is, if I'm following this documentation here: Azure Event Grid - Subscribe to partner events - Azure Event Grid | Microsoft Learn I have no idea what I should put into #4 -> Partner Authorization. Only available optinon is Auth0 for me. I would appreciate your help to setup such an Event Grid Topic a lot. Thanks in advance.2.4KViews0likes6CommentsCreate Azure AD User using Graph API & HTML Form
Hi there! I have given myself a little project for the holidays. I'm dabbling in some ideas but I'm still very new at the developer side of things in the Microsoft Metaverse. Some background about me: I'm a Microsoft Certified Azure Solutions Architect & Azure Security Engineer Associate. My history with MS goes as far back as MS-DOS 🙂 I've been working mostly in the front-end side of things and only started in recent years dabbling with back-end and coding. I am by no means fluent in any developer languages but know my way around Powershell. I'm currently self-studying for the Azure DevOps Engineer Expert certification. So on to my little project... Basically, I want to create a User Signup form in HTML. The usual "First Name", "Surname", "Email Address", "Password" and "Confirm Password" fields. I've gotten this far and I have the submit button too. For the scripting I've chosen Javascript but suggestions are welcome on whether C# or another language would be easier / faster / better. Now the part where I'm at a loss is how to pass the values captured in a form using Javascript to the Microsoft Graph API to create the user in Azure AD based on the values filled into the fields. I have created the Azure App Registration with sufficient permissions as per Microsoft Documentation. User.Read.All & User.ReadWrite.All But I'm not at all clued up on how to create the Authentication Provider, Get the Access token etc. Can this be tested locally or do I need a web server? Right now I have a local HTML file that contains the form and a Javascript (.js) file with some code that I copied from Microsoft example documentation but I have no idea which values are supposed to be replaced with my values. I would appreciate any help / hint in the right direction. I apologize if this is the wrong forum for this. Feel free to point me in the right direction. 🙂 Thanks in advance! Regards, O2KViews0likes1CommentPHP Graph API Permissions Issues...
I have a simple PHP application which retrieves profile information from the Azure AD. Works fine in dev, however, once installed on a client site (their own Azure AD), they receive this error message: Some errors in API response: Insufficient privileges to complete the operation. Has anyone experienced this using the Microsoft Graph API? Thanks in advance, ML857Views0likes0Comments