Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Navigate to https://<Admin Center>/_layouts/15/AppInv.aspx (e.g. https://intlock-admin.sharepoint.com/_layouts/15/AppInv.aspx).
  2. Paste client ID generated earlier into App Id field. Click Lookup. The existing values for TitleApp Domain and Redirect URL should appear.

  3. Enter the following XML into the App's Permission Request XML field to specify required permissions. Then click Create.

     

    <AppPermissionRequestsAllowAppOnlyPolicy="true">
      <AppPermissionRequestScope="http://sharepoint/content/tenant"Right="Manage"/>
      <AppPermissionRequestScope="http://sharepoint/content/sitecollection"Right="Manage"/>
      <AppPermissionRequestScope="http://sharepoint/content/sitecollection/web"Right="Manage"/>
      <AppPermissionRequestScope="http://sharepoint/social/tenant"Right="Manage"/>
    </AppPermissionRequests>

  4. You will be prompted to approve permissions for the app. Click Trust It.

  5. You can check the App registration details by navigating to: https://<Admin Center>/_layouts/15/AppPrincipals.aspx
  6. You can test the App credentials by executing the following powershell commands to retrieve the list of all available site collections.

    $ Connect-PnPOnline https://<your-tenant>-admin.sharepoint.com -AppId <your-app-id> -AppSecret <your-app-secret>
    $ Get-PnPTenantSite

 

Anchor
updating multiple
updating multiple

...

Deploying the CardioLog Tracking Code on Multiple Site Collections

In order to update to deploy the tracking code on all multiple site collections in your SharePoint Online environment, follow these steps:

  1. Find Usage Tracking Code in System Configuration, under Administration in the navigation pane.
  2. Select SharePoint Online and then copy the tracking code from the Tracking Code box
    Image Removed
    Usage Tracking Code
  3. Verify that the all URLs in the tracking code that redirect to your CardioLog application server have the public DNS name and appropriate protocol. The URLs should be accessible over the public internet. Use HTTPS if you are tracking secured SharePoint Online site collections. 
  4. In the Administration section of the Navigation pane, click System Configuration, and then select SharePoint Tree Adaptor.
  5. Click on your SharePoint Online website tenant.
  6. Click on Publish Tracking CodeDownload next to Additional Actions.
    Image Removed
    Actions to download the tracking code deployment package WSP-Tracking-Install-Script.zip. 
    Note: The deployment package includes a PowerShell script that deploys the tracking agent wsp solution and JavaScript tracking code on all selected site collections, as well as the modern sites integration app on the App catalog and on all selected site collections and their sub-sites.

    Image Added
    SharePoint Online Adaptor - Publish Download Tracking Code Deployment Package
     
  7. Add the JavaScript tracking code you had copied previously 
  8. Click Apply in the bottom right-hand corner to save your changes.
    Image Removed 
     Publish Tracking Code Right click the downloaded package zip file, select Properties > General and click on "Unblock" before unzipping it.
  9. Open the tracking.txt file and edit the <cardiologserverdnsname> (CardioLog application server/tracking server public DNS name, without the https:// protocol prefix). Verify that it is accessible over the public internet.

    Info
    iconfalse

    sourceDomain: '<cardiologserverdnsname>/CardioLogAgent/js/modern', 
    eventListenerDomain: '<cardiologserverdnsname/CardioLogAgent',
    modules: ['survey-and-message-bar'], 

    statisticsPath: '<cardiologserverdnsname>/CardioLogAgent/ReportDispatcher.aspx'


  10. Run the Run_Script.ps1 script in PowerShell. Make sure the you have the following prerequisites before executing the PowerShell script:
    • You must have the MS Online module installed). 
    • The credentials of the SharePoint Online global administrator.
    • If you are using multi-factor authentication (MFA), make sure you have an app password for Office 365.
    • Make sure custom scripts are turned on (changes in this setting take up to 24 hours to apply):
      Office 365 Admin > Admin Centers > SharePoint Admin Center > Settings > Custom Script > Select Allow in both options
      In case a specific site collection does not inherit these settings from SharePoint Central Administration, you can execute the following commands in SharePoint Online Management Shell (replace the placeholders for [company] and [site collection url]):
      Info
      iconfalse
      $url = "https://[company]-admin.sharepoint.com"
      $User = Read-Host -Prompt "Enter username for $url"
      $Password = Read-Host -Prompt 'Enter password' -AsSecureString
      $credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($User, $Password)
      $adminContext = New-Object Microsoft.SharePoint.Client.ClientContext($url)
      $adminContext.Credentials = $credentials
      $tenant = New-Object Microsoft.Online.SharePoint.TenantAdministration.Tenant($adminContext)
      $adminContext.Load($tenant)
      $adminContext.ExecuteQuery()
      $props = $tenant.GetSitePropertiesByUrl("[site collection url]", $false)
      $adminContext.Load($props)
      $adminContext.ExecuteQuery()
      $DenyAddAndCustomizePagesStatusEnum = [Microsoft.Online.SharePoint.TenantAdministration.DenyAddAndCustomizePagesStatus]
      $props.DenyAddAndCustomizePages = $DenyAddAndCustomizePagesStatusEnum::Disabled
      $props.Update()
      $adminContext.ExecuteQuery()

Anchor
document versions online
document versions online
Importing Document Versioning Information for your SharePoint Lists and Libraries

In order to take full advantage of document modification reports, turn on versioning for your SharePoint lists and libraries. Versioning numbers and saves successive iterations of a given document to monitor changes in the document over time.

To collect document versioning information from SharePoint Online:
 

...