Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Portal Installation

Table of contents
  1. Installation
    1. Prerequisites
    2. Schema Extension
    3. Sets and MPRs
      1. Sets
      2. MPRs
    4. Backup Workflow for UI settings
      1. Get MIMWAL version and token
      2. Get Micrsoft.ResourceManagement Version
      3. Import Backup Workflow
    5. Publish OCG Data Service and OCG UI

Installation

Version: 4.2 or above

Prerequisites

Schema Extension

Add the following attributes and bindings in MIM Portal.

Alternatively you can import the OCG Schema file (MIM2016R2SP1_SchemaOnly_ChangeSet_V2.xml), which already includes the schema extension.


Attribute Name System Name Type Multivalued Bind to
OCG Configuration XML ocgConfigurationXML Unindexed string No Person, Set
OCG Admin View Sets ocgAdminViewSetRefs Reference Yes Person
OCG Primary View Set ocgPrimaryViewSetRef Reference No Person
OCG Object Type ocgObjectType Indexed string No Set
OCG Object Scope ocgObjectScope Indexed string No Set
OCG Object Status ocgObjectStatus Indexed string No Set
OCG Object Source ocgObjectSource Indexed string No Set
OCG Is Active ocgIsActive Boolean No Set

Administrators Set should have full access to OCG extension types and attributes. Additionally, ocgObjectType, ocgObjectStatus, ocgObjectScope and ocgObjectSource should be added to filter permissions

Make sure to run iisreset after extending schema

Sets and MPRs

Add the following Sets and MPRs in MIM Portal

Alternatively you can import the OCG Sets and MPRs file (MIM2016R2SP2_UISetsMPRs_ChangeSet.xml), which already includes the Sets and MPRs.

Sets

  • OCG UI: All UI Sets
dashboard.png
set1_2.png


  • UI - Standard View
set2_1.png
set2_2.png

Input “uibase” in the “OCG Object Type” attribute Copy the content of “ui-config-example.json” from the installation package in the the “OCG Configuration XML” attribute

If you get a 10000 character limitation error, you can use the “importUISettings.ps1” to import the “ui-config-example.json” file

MPRs

  • OCG UI: Users can control UI attributes of their own
mpr1_1.png
mpr1_2.png
  • OCG UI: Users can control UI Sets of their own
mpr2_1.png
mpr2_2.png
  • OCG UI: Users can read UI Sets
mpr3_1.png
mpr3_2.png
  • OCG UI: Users can read selected attributes of Sets, where they are a member of
mpr4_1.png
mpr4_2.png

Backup Workflow for UI settings

Refer to Sets based UI Settings to learn how UI setting works. This section only shows how to deploy workflows to backup different UI settings

Get MIMWAL version and token

Go to MIM Portal -> Administration -> All Resources -> Activity Information Configuration (AIC), open any MIMWAL AIC (display name starts with “WAL:”) and write down the version number and the token displayed in the “Assembly Name” field.

Get Micrsoft.ResourceManagement Version

Navigate to C:\Windows\Assembly and find the version number to the Microsoft.ResourceManagement library

backup1_1.png
backup1_2.png

Import Backup Workflow

Open the file “UISettingBackup_ChangeSet.xml” from the installation package and replace !mimWalVersion!, !token! and !resourceManagementVersion! with the real data from the above steps. Import this file into MIM Portal, you should get 4 new objects:

  • OCG UI: Create ocgConfiguration Object for UISettingBackup This is the Workflow for the backup process
  • OCG UI: Create ocgConfiguration Object for UISettingBackup on ocgConfigurationXML change This is the MPR for the backup process
  • OCG UI: Backup Setting - Backup per Day This is a configuration object of type ocgConfiguration, defines how many backups should be made for each UI Set every day. Default is 5
  • OCG UI: Backup Setting - Days to Backup This is a configuration object of type ocgConfiguration, defines how long the backups should be held in MIM Portal before they are expired and deleted. Default is 30

After importing the backup workflow, a backup object of type ocgConfiguration will be created every time UI Setting is changed. The display name of the backup object has the format
“UI Setting Backup - - "

Publish OCG Data Service and OCG UI

  1. Copy the OCGUI folder from the installation package to C:\inetpub
  2. Add a website “OCGUI” in IIS with 8088 as port number, “C:\inetpub\OCGUI” as physical path and “.Net v4.5” as application pool
  3. Convert “service” to application
  4. Enable “Anonymous Authentication” and “Windows Authentication” for “OCGUI” website
  5. Enable “Anonymous Authentication” and “Windows Authentication” for “service” application
  6. Exclude */service from the URL of OCGUI using URL Rewrite

    In real production environment you may need additional settings in IIS like Host Name; Application Pool with Service Account, which has SPN registered; Negotiate only Authentication, etc.

iis1_1.png
ocgui_iis_structure.png
ocgui_iis_auth1.png
ocgui_iis_auth2.png
ocgui_iis_urlrewrite.png

Table of contents