azure-ad-graph-api

Microsoft Graph API unable to Send Email C# Console

拥有回忆 提交于 2021-02-20 19:50:58
问题 I have created a small Console Ap p to send email using Microsoft Graph API . Tutorial Used https://docs.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0&tabs=csharp Error ServiceException: Code: NoPermissionsInAccessToken Message: The token contains no permissions, or permissions can not be understood. Code using System; using System.Collections.Generic; using System.Linq; using System.IO; using Microsoft.Graph; using Microsoft.Graph.Auth; using Microsoft.Graph.Extensions;

Azure AD B2C - how to implement custom sign up process?

泄露秘密 提交于 2021-02-18 18:48:39
问题 This is basically a follow up to my prev question - https://stackoverflow.com/a/44738654/2896495. I've implemented an Azure B2C sign up and auth in my web app (.NET Core 2.0) and now I want to add a custom sign up logic with Graph API (as described here - https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-devquickstarts-graph-dotnet). But I'm confused about app registrations. For B2C auth I created an app in the Portal under Azure AD B2C -> Applications. Now, in

How to access Graph API from Web API in SPA application

♀尐吖头ヾ 提交于 2021-02-18 05:20:29
问题 I have an Angular application that talks to the WebAPI and the users are authenticated against Azure Active Directory I followed the sample here https://github.com/Azure-Samples/active-directory-angularjs-singlepageapp-dotnet-webapi and was able to authenticate user against AD and pass that along to the Web API. However I want to access the Graph API in the Web API and get the current user profile information. How can I set it up? Updated to give more context on the setup: I have a web site

How to call azure graph api using postman

六月ゝ 毕业季﹏ 提交于 2021-02-16 18:14:06
问题 I am trying to call graph api to get user information. I am using postman to get the token first and then using that token trying to make a request to graph api I get the token with below post request and with 4 key values for grant_type, client_id, client_secret and resource. https://login.microsoftonline.com/{{tenantid}}/oauth2/token The response is { "token_type": "Bearer", "expires_in": "3600", "ext_expires_in": "3600", "expires_on": "1555583717", "not_before": "1555579817", "resource":

How to get Authorization Code from Azure App using HTTP Request in C#?

这一生的挚爱 提交于 2021-02-11 15:06:45
问题 I have created a .Net Application and to access certain outlook graph API's i need to fetch the access token and to get this access token i want authorization code which need to be passed. As far as the article for Authorization Code Flow , I have seen examples where we can get the authorization code by using the browser, whereas, in my case i want to retrieve the auth code within the application. Is there any way we can achieve this? 回答1: How to get Authorization Code from Azure App using

How can I create a Azure Web Application to authenticate User and acquire its Access Token?

ぃ、小莉子 提交于 2021-02-11 13:18:18
问题 I want to create an Azure Web Application that can authenticate an external/internal (from any Organization) user upon opening the Web Application link through Azure AD Credentials and acquire its Access token in return. I want to use that Access Token to programmatically create an application registration in User's tenant. 回答1: First, you need to register an application and set it as a multi-tenant application, then use the auth code flow to authenticate the user and obtain an access token.

Creating Azure AD B2C Social Account using graph API

◇◆丶佛笑我妖孽 提交于 2021-02-11 13:01:47
问题 I have added google and facebook as Identity Provider for my Azure AD B2C tenant . Now I want to create social users for both google and facebook using azure ad graph api . In api documentation it is mentioned that "userIdentities" is required attribute which is having to sub attributes "issuer" and "issuerUserId" . for "issuer" it is quite clear what should be the value , but am not able to find how to get "issuerUserId" for identityProvider. It is described as "The unique user identifier

Login with personal Microsoft accounts failes to Oauth2 v2

纵然是瞬间 提交于 2021-02-10 23:12:10
问题 I did register a new Application on portal.azure.com with my Office365 company account to Access the GraphAPI. While authentication is working for users from our own domain (the one registered with O365), I keep getting an error for users from personal Microsoft accounts (outlook.com or live.com). I did setup the Application to support 'All Microsoft account users'. This is the Manifest { "id": "valid-uid", "acceptMappedClaims": null, "accessTokenAcceptedVersion": 2, "addIns": [],

Login with personal Microsoft accounts failes to Oauth2 v2

大城市里の小女人 提交于 2021-02-10 23:06:11
问题 I did register a new Application on portal.azure.com with my Office365 company account to Access the GraphAPI. While authentication is working for users from our own domain (the one registered with O365), I keep getting an error for users from personal Microsoft accounts (outlook.com or live.com). I did setup the Application to support 'All Microsoft account users'. This is the Manifest { "id": "valid-uid", "acceptMappedClaims": null, "accessTokenAcceptedVersion": 2, "addIns": [],

Azure AD B2C Graph Api - Get/Set profile picture

流过昼夜 提交于 2021-02-08 07:09:09
问题 For one of my dashboards I want to show the user their profile picture for obvious personalisation reasons, and offer them the possibility to change it. Most blog posts and articles on the Microsoft Docs site name a variety of endpoints I can leverage to get this data, but I'm just unable to get this to work with a simple postman call. Since I can't even get the photo, I wouldn't know how to change (update) it either. The following endpoints don't work: GET https://graph.microsoft.com/beta