skip to Main Content

Microsoft Graph API Send Mail Response Is Empty – Php

I am trying to send an email using modern smtp with Office365 Graph API. Emails are sending fine, with attachments however, I cannot seem to fullfill the response I'm expecting from the endpoint. $this->graphSdk->createRequest("POST", "/users/" . $this->config['from_email'] . "/sendmail") ->attachBody($this->getMessageBody($message))…

VIEW QUESTION

Azure – assign license with MsGraph

I need to assign license using MsGraph-if you are here, you know it will be obsolete by the end of March. So far, I found this. $AddLicense = @( @{SkuID = $license DisabledPlans = $DisabledPlans}) Set-MgUserLicense -UserID $upn -AddLicenses $AddLicense…

VIEW QUESTION

Azure – me request is only valid with delegated authentication flow in Graph API in .Net Core API

I have a .net core api and User.Read delegated permission is given. Authentication section in startup.cs: services.AddAuthentication("Bearer") .AddMicrosoftIdentityWebApi(Configuration.GetSection("AzureAd")); Getting the graph api client: var credential = new DefaultAzureCredential(); var token = credential.GetToken( new Azure.Core.TokenRequestContext( new[] { "https://graph.microsoft.com/.default" })); var accessToken…

VIEW QUESTION

Azure – msgraph-sdk-go can't create more than two extensions on a user

When I try to create an schema extension on a user like this schemaExtension := graphmodels.NewSchemaExtension() additionalData := map[string]interface{}{ "extensionName": "dean.ext.test.1", "theme": "dark", "color": "purple", "lang": "English", } schemaExtension.SetAdditionalData(additionalData) if result, err := client.UsersById(userId).Extensions().Post(context.Background(), schemaExtension, nil); err != nil {…

VIEW QUESTION

Azure – How get access token for another resource using Microsoft OAuth

The user logs in with https://login.live.com/oauth20_authorize.srf Parameters: client_id=<CLIENT_ID> response_type=code scope=XboxLive.signin offline_access redirect_uri=<REDIRECT_URL> And gets an authorization_code M.R3_BAY.5530f5eb... When using: https://login.live.com/oauth20_token.srf grant_type=authorization_code client_id=<CLIENT_ID> scope=Xboxlive.signin Xboxlive.offline_access code=M.R3_BAY.5530f5eb... redirect_uri=https://localhost/oauth_success client_secret=<CLIENT_SECRET> Getting access_token and refresh_token. I want to use one of these tokens to…

VIEW QUESTION
Back To Top
Search