Using Connect アクション in Microsoft 365 Outlook パッケージ
- 最終更新日2024/03/04
Using Connect アクション in Microsoft 365 Outlook パッケージ
Use the Connect アクション in the Microsoft 365 Outlook パッケージ to establish a connection with a Microsoft 365 Outlook server. This is the first アクション you must use to automate Microsoft 365 Outlook related tasks.
- Configure OAuth 2.0 properties in the Microsoft Azure portal:
- For information on using the Client credentials authentication mode, see クライアント資格情報を使用して OAuth 2.0 を設定する.
- For information on using the Authorization code with PKCE authentication mode, see PKCE で認証コードを使用して OAuth 2.0 を設定する.
- For information on using the Control Room managed authorization mode, see Control Room マネージを使用して OAuth 2.0 を設定する.
- Configure OAuth connection in Control Room.
For more information, see Control Room で OAuth 2.0 接続を構成します.
Settings
- Click the Azure cloud drop-down and select one of the following:
- Azure Global: for Microsoft 365 Commercial version (login.microsoftonline.com)
- Azure US GCC High: for Microsoft 365 Government version (login.microsoftonline.us)
- Click the OAuth2 Authentication mode drop-down and select
one of the following authentication modes:
-
Client Credentials
For more information, see Microsoft identity platform and the OAuth 2.0 client credentials flow
Use the following fields to enter the information that is provided for your account on your Azure portal- Client ID: enter the Microsoft 365 client or insert it from the Credential Vault.
- Tenant ID: enter the unique ID for your Microsoft 365 subscription or insert it from the Credential Vault.
-
Username: enter the username that you want
to use for accessing the Microsoft 365 Outlook server.
If you are accessing shared mailbox, ensure that you provide the email address of the user who has access to the shared mailbox
- Client secret: enter your access token or insert it from the Credential Vault.
For all the above fields, you can use one of the following tabs to insert a value:- Credential: to use a value in the Credential Vault that contains information about the Client ID/Client secret/ username/ password..
- Variable: to use a user-defined variable that contains information about the Client ID/Client secret/ username/ password.
- Insecure string: to enter a value.
-
Authorization Code with PKCE
For more information, see Microsoft identity platform and OAuth 2.0 authorization code flow
Use the following fields to enter the information that is provided for your Azure portal:- Client ID: enter the Microsoft 365 client or insert it from the Credential Vault.
- Tenant ID: enter the unique ID for your Microsoft 365 subscription or insert it from the Credential Vault.
-
Redirect URL: enter the URL address.
The Bot must run in an attended mode by providing a log in form for the first time where you can enter your log in credentials.
-
Username: enter the email address of the
mailbox you want to access within Microsoft 365 Outlook server.
OAuth2 credentials configured in the Microsoft Azure portal must be used to access this mailbox. If you are accessing shared mailbox, ensure that you provide the email address of the user who has access to the shared mailbox
注: If you have selected the Authorization Code with PKCE option, a browser is displayed that implies the connection to the Microsoft 365 Outlook server was established successfully. Ensure that you close this browser to continue. -
Control Room
managed
Use the following fields to update the information:
-
Connection: click the
Pick button to select an existing
connection.
- Click the Provider type drop-down
menu to select an available or custom provider.
For information in creating a custom provider, see Control Room で OAuth 2.0 接続を構成します.
- Click the Connection name to select the corresponding connection for the selected provider.
- Use the Token type field to select
one of the following options:
-
Shared: for a global
token.
An access token of shared type is created when a connection is established to the Control Room. This access token is stored as a credential. When you run your automation, the access token is referenced in the automation using the enterprise application provider type set up in the Control Room.
-
User-specific: for a token that
is specific to a user.If you select this option, ensure that you log in to your Microsoft 365 account to authenticate and generate a user-specific token. Perform the following steps to use this option:
- Log in to Control Room and navigate to in your profile.
- Under the OAuth connections tab, click Login to authenticate.
- Sign in to your Microsoft 365 account and select Continue.
- Verify the services you have access to and
click Continue.
If the connection is succeeded, it will display the status as Active under the table.
-
Shared: for a global
token.
- Click the Provider type drop-down
menu to select an available or custom provider.
- Click one of the following tabs in the
Username field:
- Credential: click the Pick button to select a value in the Credential Vault that contains information about the username.
- Variable: to use a user-defined variable that contains information about the username.
- Insecure string: to enter a value.
If you are accessing shared mailbox, ensure that you provide the email address of the user who has access to the shared mailbox
-
Connection: click the
Pick button to select an existing
connection.
-
Client Credentials
- In the Create Microsoft 365 Outlook
session field, use one of the following tabs for creating a
session:
- Local session: to specify a session name that can be used only in the current Bot.
-
Global session: to specify a session name that can
be used across multiple botsBots, such as parent Bots, child Bots, and all other child Bots of the parent Bot.Recommendation: 親 Bot と子 Bot のパッケージ バージョンは同じになる必要があります。
- Variable: to specify a session variable that can be used to share that session with other child Bots.