Working with backup sets : Cloud (Microsoft Office 365 Groups) backup sets (Windows) : Before you begin : Creating an OAuth 2.0 client credential configuration file
 
Creating an OAuth 2.0 client credential configuration file
This section describes how to create a text file containing the OAuth 2.0 client credentials that can be imported when creating a Microsoft Office 365 Groups backup set to automate the process.
To create an OAuth 2.0 client credential configuration file, do one of the following:
To use the directory ID in the properties of the Azure Active Directory, use this format:
directory:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
client_id:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
client_secret:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
To use the domain name of the Microsoft Office 365 Group, use this format:
directory:example.onmicrosoft.com
client_id:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
client_secret:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
NOTE:  OAuth cloud credentials that are saved as part of the backup set might expire if the backup set is not used for an extended period. If this occurs, the credentials can be reauthorized by typing them again on the Share tab of the Properties dialog box.