Azure / Microsoft365R

R SDK for interacting with Microsoft 365 APIs
Other
318 stars 46 forks source link

Testers wanted: Teams chats, Outlook shared mailboxes #69

Open hongooi73 opened 3 years ago

hongooi73 commented 3 years ago

Microsoft365R has been updated with the following features:

However, at the moment I don't have access to a suitable tenant for testing these. This is a request for anyone whose tenant has approved the Microsoft365R app registration to install the development version and try using these features.

If you have previously used OneDrive, Teams and Outlook, everything should still work the same as before.

If you previously tried to use Sharepoint and got an authentication error, you should see a screen requesting you to grant Microsoft365R permission to access your Sharepoint site. You may or may not need an admin to approve the request, depending on your tenant's policies.

hongooi73 commented 3 years ago

This is now live in 2.3.0 but bug reports still welcome.

bresnico commented 2 years ago

Hello,

Thanks for this amazing package which really helps me in my workflow!

As you asked, please find a issue: I can't use any of the sharedmb* with get_business_outlook(). You can see the output in RStudio in attached image. Notice that get_business_outlook() works fine with my own address.

The system fails with a 403 error which seems strange as I have the permissions to access and manage the related shared mailbox.

Would be enthusiastic to try some ideas. thanks for your time !

Capture d’écran 2022-06-21 à 08 28 16 Capture d’écran 2022-06-21 à 08 26 26 Capture d’écran 2022-06-21 à 08 26 05

nicolas

hongooi73 commented 2 years ago

See #39, you have to create an app registration with the Mail.ReadWrite.Shared permission. Or rather, your admin will probably have to create this app registration, since most orgs restrict the ability to do this.

bresnico commented 2 years ago

Thanks it helps ! please find the permissions in the image below. What should be different ? I suppose it could concern the "delegate" status... but not sure... Capture d’écran 2022-06-21 à 16 49 54

Thanks again for your time.

hongooi73 commented 2 years ago

Add the app ID to your get_business_outlook call.

mmadmar commented 1 year ago

Hi @hongooi73 Thank you for the great package.

I use the following snippet: my_outlook <- get_business_outlook( tenant = tenant, app = app, shared_mbox_name = "shared@xyz.com", password = client_secret, auth_type="client_credentials" )

This gives the following error Loading Microsoft Graph login for tenant 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' Creating Microsoft Graph login for tenant 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' Error in process_aad_response(res) : Bad Request (HTTP 400). Failed to obtain Azure Active Directory token. Message: AADSTS1002012: The provided value for scope https://graph.microsoft.com/User.Read https://graph.microsoft.com/Mail.Send https://graph.microsoft.com/Mail.ReadWrite https://graph.microsoft.com/Mail.Send.Shared https://graph.microsoft.com/Mail.ReadWrite.Shared openid offline_access is not valid. Client credential flows must have a scope value with /.default suffixed to the resource identifier (application ID URI). Trace ID: xxxxxxxxxxxxxx Correlation ID: xxxxxxxxxxxxxxxxxxxx Timestamp: xxxxxxxxxxxxxxxxxx.

Can you help with that?

Thank you.