Skip to main content

Mail Send Functionality

For the functionality of select packages and for the Pia Portal to be able to send email notifications to your staff, the following must be set in your environment. These permissions must be applied regardless of your internal company's environment type.

info
Note: While the instructions below will appear similar to the Microsoft Graph Delegated Consent section, these permissions are for an entirely separate purpose.
  1. Click on "Clients" on the left hand menu and then choose your internal company's Client from the list.
info
Note: If your internal company's Client has not been synced from your ticketing system, you will have to complete this task first before continuing.
info

Note 2: If your internal company has only been synced for this purpose and has not had the Microsoft Graph API permissions authorised as per that section above, there is a separate process underneath this one you will need to follow.

1-graph-api.png

  1. Click on the “Delegate” button on the Microsoft Graph API tile.

1-delegate-consent.png

  1. Click on the "New Consent" button.

1-delegate-consent.png

  1. Turn on/set to "Yes" the following permissions on the page and then click “Authorise”. • Mail.Send

1-mail-send.png

  1. Enter in the credentials of a service account in your tenant which can be used to send the email notifications into the login prompt.

  2. After completing the Delegate Consent you will see the UPN of the Microsoft 365 account used in the Delegate Consent window.

5-delegate-consent.png

  1. Advise Pia's Partner Integration Manager that you have finished applying the Delegate Consent permissions so they can apply some additional configuration on the backend of your Pia Portal.

Mail.Send Only Permissions

The guide below should be followed in the scenario where you have synced your internal company into the Pia Portal for the sole purpose of configuring the Mail.Send permissions. This is applicable where you do not intend to deploy/use Pia internally and have not Authorised the Microsoft Graph API permissions against your own internal Azure Tenant(see Microsoft Graph API Authorisation section above).

  1. Click on "Clients" on the left hand menu and then choose your internal company's Client from the list.
info
Note: If your internal company's Client has not been synced from your ticketing system, you will have to complete this task first before continuing.
  1. Click on the “Delegate” button on the Microsoft Graph API tile.

1-delegate-consent.png

info
Note: Please ignore that the client is Microsoft Graph API Authorised in the example screenshot.
  1. Click on the "New Consent" button.

1-delegate-consent.png

  1. Turn on/set to "Yes" the following permissions on the page and then click “Authorise”. • Group.ReadWrite.All • Mail.Send • Directory.AccessAsUser.All

6-delegate-consent.png

  1. In the Microsoft 365 sign-in page, enter in the credentials of the Global Administrator account and sign-in.

  2. When prompted, choose to "Consent on behalf of your organization" and then click "Accept".

23-clients-mail_send4.png

  1. Close the Delegate Consents page and then refresh the browser.

  2. Click on the "Delegate" button again to see the delegated consent permissions in the list.

  3. Repeat Steps 3 through to 8 again for the service account you want to use to send emails from.

info
Note: This process will actually skip Step 6 as the permissions have already been consented to on behalf of your organisation.
  1. Once completed, you will see two delegated consent permissions in the list with the same "Scopes"(permissions), one for your Global Admin account and one for the service account Pia will be using to send emails.

5-delegate-consent.png

  1. Delete the permissions for the Global Admin account by clicking on the "bin" icon on the Global Admin account's row in the list and then close the window.

7-delegate-consent.png

Note

After you have granted the Permissions for the Mail.Send Functionality, the Solutions Engineer taking you through the Onboarding will configure these three global variables that will allow you the use of the Mail.Send Permissions via your Pia Tenant.

Variable NameValue
Mail_Send_ModeClient
Mail_Send_UPNThe value for the UPN will be the account that you have delegated Pia for Mail.send according to the instructions above
Mail_Send_IDPia Client Id which the Mail.Send Delegate Consents were applied to according to the instructions above

This is typically actioned by the Solutions Engineer after your implementation session.