Authorizing and connecting your app using the CLI

Prev Next

To authorize and connect your app on the File Protect appliance using the CLI:

  1. Enable the CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. Generate an app admin consent authorization and paste the URL generated from the authorize command into a Web browser. Copy the tenant ID value for

    Step 3.

    hostname (config) # fmps o365 authorize
    
    Paste the following URL in your browser and approve the app's access.
    Copy the value of 'tenant=' and use with cli:
    fmps o365 cvonnect tenant-id*	
    https://login.microsoftonline.com/common/adminconsent?redirect_uri=https%3A%2F%2                                           Fwww.fireeye.com&client_id=49b9606f-50dd-4ee1-b080-70e10cb855d0	

    Below is a sample of an admin consent containing a tenant retrieved from the redirect URL in the Web browser.

    FX_OneDrive_tenant-id_scap.png
  3. Get access token for API communication for tenant-id retrieved from Step 2.

    hostname (config)# fmps o365 connect tenant-id <MicrosoftOfficeTenantID>
  4. Save your changes.

    hostname (config) # write memory