cancel
Showing results for 
Search instead for 
Did you mean: 

Issues Implementing MS Graph Outlook VBO

RachelAbbott
Level 3

We are attempting to implement the Microsoft Graph API for accessing a shared Outlook mailbox.  Currently, I am attempting to use the List Messages action, and am getting the following error message (have tested other actions with a similar error): {"error":{"code":"InvalidAuthenticationToken","message":"Access token is empty.","innerError":{"date":"2023-02-22T15:07:56","request-id":"xxx","client-request-id":"xxx"}}}

However, we've confirmed that the authentication token is still active. We have the following API permissions set:

Mail.ReadWrite (Delegated)

Mail.ReadWrite.Shared (Delegated)

Mail.Send (Delegated)

Mail.Send.Shared (Delegated)

For the inputs, we're using the shared mailbox (full email address) as the mailbox ID.

Thank you in advance for any help you can provide.

19 REPLIES 19

ewilson
Staff
Staff

@Rachel Abbott

This is likely because you have an older version of the Utility - HTTP VBO deployed in your environment. I'd suggest grabbing the latest version from the Digital Exchange and try again.

https://digitalexchange.blueprism.com/dx/entry/3439/solution/utility---http

Cheers,

Eric

RachelAbbott
Level 3

Thanks @ewilson 

We're now getting a 403 (Forbidden) error; any recommendations on what might be causing that? Have you seen any limitations with others around configs/access for shared mailboxes using the VBO?

ewilson
Staff
Staff

@Rachel Abbott

Are you using an Application Access token or a Delegated Access token? Have you verified that the Client ID you have has to proper mail permissions in Azure AD? For mail this would include either Mail.Read.Shared or Mail.ReadWrite.Shared for reading from the shared mailbox. You would also need Mail.Send.Shared if you intend to send email from the shared mailbox.

Here's a link to the Microsoft Graph permissions reference:

https://learn.microsoft.com/en-us/graph/permissions-reference#mail-permissions

Cheers,

Eric

RachelAbbott
Level 3

@ewilson 

We're using a Delegated Access token and do have the Mail.ReadWrite.Shared and Mail.Send.Shared permissions configured.

ewilson
Staff
Staff

@Rachel Abbott

Ok, so the digital worker is essentially working on behalf of someone as a delegate. Have you verified that the user account, to whom the digital worker is working on behalf of, has permissions on the shared mailbox?

Cheers,

Eric

RachelAbbott
Level 3

@ewilson 

Yes, we've confirmed that the account has permissions to the shared mailbox. Thank you for your continued help with this - I appreciate it!

RachelAbbott
Level 3

@ewilson 

Any chance the issue could be in the Manifest configurations? Would you be able to provide an example of what those should look like?

ewilson
Staff
Staff

@Rachel Abbott

If you're trying to get a Delegated Access token you must pass in the Tenant ID, Client ID, Username, and Password. Do not pass in Client Secret because that automatically results in trying to get an Application Access token. The Username and Password are for the account your Digital Worker is trying to work on-behalf of. Also, I believe Delegated Access will require that you enable the Allow public client flows option within the Application Registration page for the Client ID you're using.

Here's an example of what that looks like in the Azure Admin page:

35365.png

Cheers,

Eric

RachelAbbott
Level 3

Thanks, @ewilson . Ultimately, we decided to change configurations to Application level access with a Scope configured in the app registration to limit access to just the mailboxes needed. So far, everything seems to be working great now! Thank you so much for your help with this.