Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

...

Code Block
languagejs
try {
    let requiredScopes
} catch (e) {
    console.log("variable already declared")
    console.log(e)
}

if (typeof requiredScopes === 'undefined') {
    console.log("defining scopes")
    requiredScopes = [
        "spark:all",
        "spark-admin:call_memberships_read",
        "spark-admin:calls_read",
        "spark-admin:licenses_read",
        "spark-admin:organizations_read",
        "spark-admin:people_read",
        "spark-admin:people_write",
        "spark-admin:resource_group_memberships_read",
        "spark-admin:resource_group_memberships_write",
        "spark-admin:resource_groups_read",
        "spark-admin:roles_read",
        "spark-admin:call_qualities_read",
        "spark-compliance:events_read",
        "spark-compliance:memberships_read",
        "spark-compliance:memberships_write",
        "spark-compliance:messages_read",
        "spark-compliance:messages_write",
        "spark-compliance:rooms_read",
        "spark-compliance:team_memberships_read",
        "spark-compliance:team_memberships_write",
        "spark-compliance:teams_read",
        "meeting:admin_schedule_read",
        "meeting:admin_schedule_write",
        "meeting:participants_write",
        "meeting:admin_participants_read",
        "meeting:controls_read",
        "meeting:controls_write",
        "meeting:admin_preferences_write",
        "spark-compliance:meetings_write",
        "spark-compliance:meetings_read",
        "spark-admin:calls_write",
        "meeting:recordings_read",
        "meeting:admin_recordings_read"
        
    ]

}

for (scope of requiredScopes) {
    let validScope = scope.replace(":", "\\:")
    
    try {
        element = document.querySelector(`input[id*=${validScope}]`)
        if (!element.checked) {
            console.log(`Clicking ${validScope}`)
            element.click()
        }
    } catch (e) {
        console.log(`couldn't find element ${scope}`)
        console.log(e)
    }
}

...

Register the Webex App in the Admin Portal

...

  1. Copy all the text in OAuth Authorization URL field (black box):


    (can be easily done by 3 left clicks on the black box text to select all the URL and Ctrl+C to copy)

  2. Paste it into a new tab of Chrome (recommends to use incognito) in the address line and press Enter:

  3. Accept the required permissions:


    You will be redirected to the Admin Portal Webex App Configuration page ([adminPortalURL]/account/webexauth):

  4. Enter the settings from Webex App: Client ID, Client Secret, Integration ID
    In External Portal Web API URL enter your AP external URL, like https://env29.agatcloud.com

    Note that here it comes without any suffix, just the site base URL.
    After clicking the Save button, the Admin Portal will try to connect to the configured Webex App and if it succeeds you will see the following page: 

...

Now the Webex App is configured and you can review the settings in the Cloud Services Integration settings page:

...