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

Use Two Accounts #194

Open
SHogenboom opened this issue Dec 11, 2023 · 1 comment
Open

Use Two Accounts #194

SHogenboom opened this issue Dec 11, 2023 · 1 comment

Comments

@SHogenboom
Copy link

@hongooi73 ; is it possible to use one account for OneDrive and another account for Outlook acces within the same code?

I currently have:

onedrive <- Microsoft365R::get_business_onedrive()
outlook <- Microsoft365R::get_business_outlook()

For which I logged in once via the browser. I would like to change the outlook connection, but am unsure how to cancel the authorization?

Ideally I would like to go to a situation where I can specify the email/credentials for each of the accounts:

onedrive <- Microsoft365R::get_business_onedrive(email = “account1”)
outlook <- Microsoft365R::get_business_outlook(email = “account2”)

How would I be able to achieve this?

@hongooi73
Copy link
Collaborator

I'm not the best person to ask about authentication matters. Check the documentation for the AzureAuth package, I think there's a way to do it by passing a certain arg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants