AAD: Not receiving password expiration notification - azure-active-directory

I've set up the notification in AAD cmdlet and also the office portal, referencing here, for my AAD tenant, but no email notification was sent when account password is about to expire. I tried setting a valid email address for both "Email" and "Alternate Email" properties in account profile on AAD.

but no email notification was sent when account password is about to
expire.
For now, we will not receive any notification emails, because the only notification that O365 provides is a pop-up in the Windows Notification area of the Taskbar. Furthermore, mobile users(i.e. i.e. smartphones and tablets) will not receive any notification.
If you want to sent email when O365 account is about to expire, we can use powershell script to send emails to users. To send emails, we should have a email server, collect the information about smtpServer and emailaddress.
More information about how to notify office 365 users that passwords will expire, please refer to this link.

Related

Gmail api credential files

I have integrated my .net application to send e-mails from Gmail, I have 5 mail accounts that now send e-mails.
For every e-mail account I have created the credential file, when the application is running the first time I most enter the credentials from the e-mail to authenticate itself.
For sending a mail from Gmail you must passed trough the correct json file, that's is created for the specific mail-account.
This has worked for the last 5 months, but now it is not possible to send any e-mails.
Now the credential files are mixed-up, when the mail is automatically send i recieve and 403 that i'm not authenticated. But the email that is given is one of the others mail accounts.
I don't recieve the consist popup to authenticate it self anymore.
Have anyone has the same issue?
regards

Is it possible to specify a from email address when inviting users to AAD using Application permission User.Invite.All

I have an application leveraging the Microsoft Graph SDK for C# and I have registered that application to use the Application Permission User.Invite.All. I would like to specify the email address the invitation should come from.
Is that possible?
You can't set the address if you use the default invitation email.
If you want a custom sender address, you'll need to send the invite email yourself through some email provider.
You can disable the default email send with:
"sendInvitationMessage": false
In the response, you will get inviteRedeemUrl.
This is the link you need to send to the user so they can accept the invite.

AAD - Change notification for user password expiry

In azure active directory, is it possible to create change notification subscription against user password expiration? so that client application PROGRAMMATICALLY can send out advance notification email about password expiration to concern user. Please advice.
You could use Set-MsolPasswordPolicy to updates the password policy of a specified domain or tenant.
The password policies that only apply to cloud user accounts, and Password expiry notification default value is 14 days (before password expires).
client application PROGRAMMATICALLY can send out advance notification email about password expiration to concern user.
It seems that it's impossible. You could vote this feedback or give your voice in it.

How to send email from delegated account using Gmail API

I have created an automated google script to send notification email on periodic basis but I want mail to be send from my delegated account since I logged in using my primary email, so I can't send it through my delegated email account.
I tried to achieve the same using send email as functionality but it is not working, recipients are receiving mails from my primary address.
Please provide your inputs
Thanks
First you need to add the delegated account in your usual inbox. Go to:
Settings>Accounts>Send mail as:>add another email address
Make sure that the "Treat as alias" checkbox is checked; submit and verify the request.
Second, you can access all the aliases with GmailApp.getAliases().
Finally, you are able to choose the alias with the Gmail Draft or Message Services by changing the from field in the option object.
https://developers.google.com/apps-script/reference/gmail/gmail-draft#update(String,String,String,Object)

GMail API - Can I send email using the Service Account?

When I send an email using the GMail API, I get an Access Token for the user to whom the message is to be sent and then when sending the message, I put some value in the From Field.
But no matter what I put in the from field, the message in the email shows as From "Me" and is in the Sent mails as well as Inbox.
Is there a way, I could use the Service Account to send the email, so that it does not show up as From "Me" and is also not in the Sent Mails.
You cannot use a service account to impersonate a free gmail account. I spent a lot of time confirming this after reading a reply that was here before. Maybe it worked at some point, but it doesn't anymore.
There is no way to share / grant another user permission to access
your standard gmail account. So there is no way for you go delegate
the permissions for bob#mycompany.com to access bob#gmail.com.
and
you can impersonate G-Suite accounts but not Gmail accounts
These quotes are from Google's official C# Auth repo:
https://github.com/googleapis/google-api-dotnet-client/issues/1561
No. The Gmail API is for Gmail users and service accounts are just for doing auth to a real Gmail account, they don't have their own Gmail account, etc.
If you want to send the email from some service, you need some bulk-sending email service like at: https://cloud.google.com/compute/docs/tutorials/sending-mail/ or something you run yourself or from some other provider.
No, what you are looking for is a bulk email sending service. Checkout sendgrid , Amazon AWS SES, mandrill or if you want to stick with Google, this. You could of course run your own postfix server (although I'm assuming you were using gmail api for deliverability in the first place.

Resources