Questions tagged [send-on-behalf-of]

18 questions
58
votes
3 answers

Best practices: Sending email on behalf of users

The company I work for provides testing services for the healthcare industry. As part of our services, we need to send email to our clients' employees. Typically, these are temp, part-time, or contract employees, and so have private email…
Ben Doom
  • 7,865
  • 1
  • 27
  • 30
2
votes
2 answers

AADSTS50013: Assertion audience claim does not match the required value

I've got a single page app that authenticates users in Azure using adal-angular.js/adal.js [client]. The returned token is inserted into the auth header and passed to a web API [server]. This web api generates a new access token for the app using…
1
vote
1 answer

Passing a token from an authenticated app to another API to use OBO flow to Graph API

We have one app that is using MSAL and generating a token with Azure AD. We need that app to call another API and we're passing the current token. That all is good. We have two different apps and I'll include some code to show how the audience…
1
vote
1 answer

OAuth2 On-Behalf-Of - how does user accept middle-tier permissions?

I'm checking out OAuth2, there is one thing about On-Behalf-Of flow that I don't understand. Flow looks like this: We have: App1 (frontend) App2 (web API) App3 (data resource (another web API)) Let's say that they are setup like this: App1 -…
Loreno
  • 668
  • 8
  • 26
1
vote
1 answer

Is access token from ADAL.net different from openid

I am new to openid and aad. I have an API which calls a downstream Graph api. I was following the example below, https://joonasw.net/view/azure-ad-on-behalf-of-aspnet-core Everything worked fine. But the front end is a third party app, which access…
1
vote
2 answers

Sending mail "on behalf of" in exchange server 2010

I am trying to send a mail using Exchange Server 2010 and System.Net.Mail.SmtpClient.I have given appropriate permission to the user on all the mailboxes. However, the mail sending fails ( without any exception in SendAsync method ). Instead, if I…
1
vote
1 answer

Send 'behalf of' mailgun in Outlook Gmail

I try to send email via Mailgun service. I have domain mg.domain.com that verified in the DNS (TXT records). I try to send email from user@some_domain.com and the credentials is the mailgun service mg.domain.com. I defined the 'From' in the code as…
Zvi
  • 577
  • 6
  • 19
1
vote
1 answer

Using Redemption to send as another user

When I view outlook I see my mailbox but also additional "business function" mailboxes. One of these is "optingout" I've written a console app that loops through several of these function mailboxes (by enumerating the folders in my session) and…
0
votes
1 answer

Select a Template Email Already Created and Send Using Specific Account

I want to take my existing code in VBA and add the feature to "Send Using a Specific Account". My Current coding calls the template based on the users location (which works great), but the email send of behalf of the same mailbox. For example when…
BWS
  • 13
  • 2
0
votes
2 answers

Problems with changing sender field and account in emails received from specific account

I have below code which changes sender field and also changes account from which the email is being sent. My account is authorized to send also from this email. Code works well on new emails and also works well replied emails, but does not work well…
0
votes
1 answer

Outlook vba send email from SharedMailbox without the "Sent on behalf"

I have been struggling to programmatically send an email as a Shared Mailbox and NOT on behalf of. I have tried this code that I can't remember now from where I took it, did a few modifications to it. Public Sub test() Dim outApp As…
David
  • 38
  • 6
0
votes
2 answers

Powershell: Change sender name in outlook com object

I want to send out emails using Powershell and outlook but the sender email needs to be different. Currently this is what i have: $OL = New-Object -comObject Outlook.Application $mItem = $OL.CreateItem("olMailItem") $mItem.SentOnBehalfOfName =…
0
votes
2 answers

AADSTS5002710: Invalid JWT token: header is malformed

I am trying to implement the "On-Behalf-Of" flow between my Client (ReactJS), Express + Node.js server (API), and Microsoft Graph. So far I have requested an accessToken from microsoft (Client), and have made a request to my API. I have ran into the…
0
votes
2 answers

Changing the Sender to use Send on Behalf

The scenario: Two teams: MainTeam and HelpingTeam MainTeam uses a shared mailbox exclusively and a macro sends all emails "on behalf of MainTeam" instead of sending-as the shared mailbox. HelpingTeam users are going to help the other team. They need…
Andreas
  • 41
  • 1
  • 6
0
votes
1 answer

Sample active-directory-dotnet-webapi-onbehalfof not working

I am trying to run the active-directory-dotnet-webapi-onbehalfof sample in single tenant mode. I've registered the web app service and the native app client as global admin for the tenant. When I run the sample, as a user in the tenant, I can get a…
1
2