Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testers wanted: Teams chats, Outlook shared mailboxes #69

Open
hongooi73 opened this issue Jul 12, 2021 · 6 comments
Open

Testers wanted: Teams chats, Outlook shared mailboxes #69

hongooi73 opened this issue Jul 12, 2021 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@hongooi73
Copy link
Collaborator

Microsoft365R has been updated with the following features:

  • Add support for shared mailboxes to get_business_outlook() (Shared Inbox Access? #39). To access a shared mailbox, supply one of the arguments shared_mbox_id, shared_mbox_name or shared_mbox_email specifying the ID, displayname or email address of the mailbox respectively.
  • Add support for Teams chats (including one-on-one, group and meeting chats).
    • Use the list_chats() function to list the chats you're participating in, and the get_chat() function to retrieve a specific chat.
    • A chat object has class ms_chat, which has similar methods to a channel: you can send, list and retrieve messages, and list and retrieve members/attendees. One difference is that chats don't have an associated file folder, unlike channels.
  • Updated the app permissions for Sharepoint to fix an access issue

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 hongooi73 added the help wanted Extra attention is needed label Jul 12, 2021
@hongooi73 hongooi73 pinned this issue Jul 12, 2021
@hongooi73
Copy link
Collaborator Author

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

@bresnico
Copy link

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 shared_mb_* 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
Copy link
Collaborator Author

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
Copy link

bresnico commented Jun 22, 2022

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
Copy link
Collaborator Author

Add the app ID to your get_business_outlook call.

@mmadmar
Copy link

mmadmar commented Feb 8, 2023

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 = "[email protected]", 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.

@hongooi73 hongooi73 unpinned this issue May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants