Open hongooi73 opened 3 years ago
This is now live in 2.3.0 but bug reports still welcome.
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 !
nicolas
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.
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...
Thanks again for your time.
Add the app ID to your get_business_outlook
call.
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.
Microsoft365R has been updated with the following features:
get_business_outlook()
(#39). To access a shared mailbox, supply one of the argumentsshared_mbox_id
,shared_mbox_name
orshared_mbox_email
specifying the ID, displayname or email address of the mailbox respectively.list_chats()
function to list the chats you're participating in, and theget_chat()
function to retrieve a specific chat.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.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.