Les articles publiés sur ce blog, ont pour but de partager des connaissances/concepts techniques et sont tous réalisés dans un environnement de test. Par conséquent, les auteurs dégagent toute responsabilité, de quelque ordre que ce soit, quant aux dommages directs, indirects ou consécutifs résultant de l’utilisation des informations contenus dans ceux-ci.
Introduction
Par défaut le portail MIM ne permet pas de voir la relation entre un set, le workflow et la MPR correspondante d’un seul coup d’œil. Généralement il faut aller dans chaque section pour trouver le workflow ou la MPR correspondante, si toutefois la convention de nommage a été appliquée et respectée rigoureusement. Ceci est encore plus valable si l’environnement est complexe avec une multitude de workflow et MPR.
Dans cet article, nous allons présenter la modification des RCDC natifs afin d’afficher dans un set le workflow ainsi que la MPR liés.
Afficher la MPR liée à un workflow
Loguez-vous sur le portail MIM (mimportal.red.lab) avec un compte membre du set Administrators ou avec le compte utilisé lors de l’installation du portail MIM.
Cliquez sur Administration
Cliquez sur Resource Control Display Configurations

Dans la barre de recherche du portail (en haut à droite), tapez : Configuration for Workflow Definition Editing

Cliquez sur Configuration for workflow Definition Editing
Dans la section Configuration Data, cliquez sur Export configuration

Renommez le fichier en l’intitulant WorkFlowDefinition-EditingConfiguration.xml
Faites une copie du fichier précédemment renommé et l’intitulé WorkFlowDefinition-EditingConfiguration-original.xml
Ouvrez le fichier WorkFlowDefinition-EditingConfiguration.xml avec notepad (nous préconisons d’utiliser notepad++ pour plus de lisibilité)
Copiez le texte ci-dessous :
<my:Grouping my:Name=”ReferencingMPRs” my:Caption=”Referencing MPRs” my:Enabled=”true” my:Visible=”true”>
<my:Control my:Name=”ActivityUsedInRequestMPRs” my:TypeName=”UocListView” my:Caption=”Activity Used In Request MPRs” my:Description=”This Activity Is Used In The Following Request MPRs…”>
<my:Properties>
<my:Property my:Name=”ColumnsToDisplay” my:Value=”DisplayName,Disabled,GrantRight”/>
<my:Property my:Name=”ResultObjectType” my:Value=”ManagementPolicyRule”/>
<my:Property my:Name=”EmptyResultText” my:Value=”The Activity Is NOT Used In Any Request MPR…”/>
<my:Property my:Name=”ListFilter” my:Value=”/ManagementPolicyRule[(ManagementPolicyRuleType=’Request’ and (AuthenticationWorkflowDefinition=/WorkflowDefinition[ObjectID=’%ObjectID%’] or AuthorizationWorkflowDefinition=/WorkflowDefinition[ObjectID=’%ObjectID%’] or ActionWorkflowDefinition=/WorkflowDefinition[ObjectID=’%ObjectID%’]))]”/>
<my:Property my:Name=”PageSize” my:Value=”10″/>
<my:Property my:Name=”ShowTitleBar” my:Value=”false”/>
<my:Property my:Name=”ShowActionBar” my:Value=”false”/>
<my:Property my:Name=”ShowPreview” my:Value=”false”/>
<my:Property my:Name=”ShowSearchControl” my:Value=”false”/>
<my:Property my:Name=”EnableSelection” my:Value=”false”/>
<my:Property my:Name=”SingleSelection” my:Value=”false”/>
<my:Property my:Name=”ItemClickBehavior” my:Value=”ModelessDialog”/>
<my:Property my:Name=”ReadOnly” my:Value=”true”/>
</my:Properties>
</my:Control>
<my:Control my:Name=”ActivityUsedInTransitionInMPRs” my:TypeName=”UocListView” my:Caption=”Activity Used In TransitionIN MPRs” my:Description=”This Activity Is Used In The Following TransitionIN MPRs…”>
<my:Properties>
<my:Property my:Name=”ColumnsToDisplay” my:Value=”DisplayName,Disabled,GrantRight”/>
<my:Property my:Name=”ResultObjectType” my:Value=”ManagementPolicyRule”/>
<my:Property my:Name=”EmptyResultText” my:Value=”The Activity Is NOT Used In Any TransitionIN MPR…”/>
<my:Property my:Name=”ListFilter” my:Value=”/ManagementPolicyRule[(ManagementPolicyRuleType=’SetTransition’ and ActionType=’TransitionIn’ and ActionWorkflowDefinition=/WorkflowDefinition[ObjectID=’%ObjectID%’])]”/>
<my:Property my:Name=”PageSize” my:Value=”10″/>
<my:Property my:Name=”ShowTitleBar” my:Value=”false”/>
<my:Property my:Name=”ShowActionBar” my:Value=”false”/>
<my:Property my:Name=”ShowPreview” my:Value=”false”/>
<my:Property my:Name=”ShowSearchControl” my:Value=”false”/>
<my:Property my:Name=”EnableSelection” my:Value=”false”/>
<my:Property my:Name=”SingleSelection” my:Value=”false”/>
<my:Property my:Name=”ItemClickBehavior” my:Value=”ModelessDialog”/>
<my:Property my:Name=”ReadOnly” my:Value=”true”/>
</my:Properties>
</my:Control>
<my:Control my:Name=”ActivityUsedInTransitionOutMPRs” my:TypeName=”UocListView” my:Caption=”Activity Used In TransitionOUT MPRs” my:Description=”This Activity Is Used In The Following TransitionOUT MPRs…”>
<my:Properties>
<my:Property my:Name=”ColumnsToDisplay” my:Value=”DisplayName,Disabled,GrantRight”/>
<my:Property my:Name=”ResultObjectType” my:Value=”ManagementPolicyRule”/>
<my:Property my:Name=”EmptyResultText” my:Value=”The Activity Is NOT Used In Any TransitionOUT MPR…”/>
<my:Property my:Name=”ListFilter” my:Value=”/ManagementPolicyRule[(ManagementPolicyRuleType=’SetTransition’ and ActionType=’TransitionOut’ and ActionWorkflowDefinition=/WorkflowDefinition[ObjectID=’%ObjectID%’])]”/>
<my:Property my:Name=”PageSize” my:Value=”10″/>
<my:Property my:Name=”ShowTitleBar” my:Value=”false”/>
<my:Property my:Name=”ShowActionBar” my:Value=”false”/>
<my:Property my:Name=”ShowPreview” my:Value=”false”/>
<my:Property my:Name=”ShowSearchControl” my:Value=”false”/>
<my:Property my:Name=”EnableSelection” my:Value=”false”/>
<my:Property my:Name=”SingleSelection” my:Value=”false”/>
<my:Property my:Name=”ItemClickBehavior” my:Value=”ModelessDialog”/>
<my:Property my:Name=”ReadOnly” my:Value=”true”/>
</my:Properties>
</my:Control>
</my:Grouping>
Ajoutez le, APRES activitiesGrouping et AVANT summary

Sauvegardez le fichier
Importer le fichier dans le portail MIM en suivant les étapes ci-dessous :
Cliquez sur Administration
Cliquez sur Resource Control Display Configurations

Dans la barre de recherche du portail (en haut à droite), tapez : Configuration for Workflow Definition Editing

Cliquez sur Configuration for workflow Definition Editing
Dans la section Configuration Data, cliquez sur Upload File

Cliquez sur OK et Submit
Lancer un prompt cmd en runas administrator
Tapez iisReset
Accédez au portail MIM et allez dans la section Workflow
Sélectionnez un workflow et constatez qu’un nouvel onglet « Referencing MPRs » est apparu

Afficher la MPR liée à un set
Loguez-vous sur le portail MIM (mimportal.red.lab) avec un compte membre du set Administrators ou avec le compte utilisé lors de l’installation du portail MIM.
Cliquez sur Administration
Cliquez sur Resource Control Display Configurations

Dans la barre de recherche du portail (en haut à droite), tapez : Configuration for Set Editing

Cliquez sur Configuration for Set Editing
Dans la section Configuration Data, cliquez sur Export configuration

Renommez le fichier en l’intitulant SetDefinition-EditingConfiguration.xml
Faites une copie du fichier précédemment renommé et l’intitulé SetDefinition-EditingConfiguration-original.xml
Ouvrez le fichier SetDefinition-EditingConfiguration.xml avec notepad (nous préconisons d’utiliser notepad++ pour plus de lisibilité)
Copiez le texte ci-dessous :
<my:Grouping my:Name=”ReferencingMPRs” my:Caption=”Referencing MPRs” my:Enabled=”true” my:Visible=”true”>
<my:Control my:Name=”SETUsedInRequestMPRAsRequestorSET” my:TypeName=”UocListView” my:Caption=”Used In Request MPR As Requestor SET” my:Description=”This SET Is Used In An Request MPR As A Requestor SET…”>
<my:Properties>
<my:Property my:Name=”ColumnsToDisplay” my:Value=”DisplayName,Disabled,GrantRight”/>
<my:Property my:Name=”ResultObjectType” my:Value=”ManagementPolicyRule”/>
<my:Property my:Name=”EmptyResultText” my:Value=”This SET Is NOT Used In An Request MPR As A Requestor SET…”/>
<my:Property my:Name=”ListFilter” my:Value=”/ManagementPolicyRule[(ManagementPolicyRuleType=’Request’ and PrincipalSet=/Set[ObjectID=’%ObjectID%’])]”/>
<my:Property my:Name=”PageSize” my:Value=”10″/>
<my:Property my:Name=”ShowTitleBar” my:Value=”false”/>
<my:Property my:Name=”ShowActionBar” my:Value=”false”/>
<my:Property my:Name=”ShowPreview” my:Value=”false”/>
<my:Property my:Name=”ShowSearchControl” my:Value=”false”/>
<my:Property my:Name=”EnableSelection” my:Value=”false”/>
<my:Property my:Name=”SingleSelection” my:Value=”false”/>
<my:Property my:Name=”ItemClickBehavior” my:Value=”ModelessDialog”/>
<my:Property my:Name=”ReadOnly” my:Value=”true”/>
</my:Properties>
</my:Control>
<my:Control my:Name=”SETUsedInRequestMPRAsBeforeSET” my:TypeName=”UocListView” my:Caption=”Used In Request MPR As Before SET” my:Description=”This SET Is Used In An Request MPR As A Before SET…”>
<my:Properties>
<my:Property my:Name=”ColumnsToDisplay” my:Value=”DisplayName,Disabled,GrantRight”/>
<my:Property my:Name=”ResultObjectType” my:Value=”ManagementPolicyRule”/>
<my:Property my:Name=”EmptyResultText” my:Value=”This SET Is NOT Used In An Request MPR As A Before SET…”/>
<my:Property my:Name=”ListFilter” my:Value=”/ManagementPolicyRule[(ManagementPolicyRuleType=’Request’ and ResourceCurrentSet=/Set[ObjectID=’%ObjectID%’])]”/>
<my:Property my:Name=”PageSize” my:Value=”10″/>
<my:Property my:Name=”ShowTitleBar” my:Value=”false”/>
<my:Property my:Name=”ShowActionBar” my:Value=”false”/>
<my:Property my:Name=”ShowPreview” my:Value=”false”/>
<my:Property my:Name=”ShowSearchControl” my:Value=”false”/>
<my:Property my:Name=”EnableSelection” my:Value=”false”/>
<my:Property my:Name=”SingleSelection” my:Value=”false”/>
<my:Property my:Name=”ItemClickBehavior” my:Value=”ModelessDialog”/>
<my:Property my:Name=”ReadOnly” my:Value=”true”/>
</my:Properties>
</my:Control>
<my:Control my:Name=”SETUsedInRequestMPRAsAfterSET” my:TypeName=”UocListView” my:Caption=”Used In Request MPR As After SET” my:Description=”This SET Is Used In An Request MPR As A After SET…”>
<my:Properties>
<my:Property my:Name=”ColumnsToDisplay” my:Value=”DisplayName,Disabled,GrantRight”/>
<my:Property my:Name=”ResultObjectType” my:Value=”ManagementPolicyRule”/>
<my:Property my:Name=”EmptyResultText” my:Value=”This SET Is NOT Used In An Request MPR As A After SET…”/>
<my:Property my:Name=”ListFilter” my:Value=”/ManagementPolicyRule[(ManagementPolicyRuleType=’Request’ and ResourceFinalSet=/Set[ObjectID=’%ObjectID%’])]”/>
<my:Property my:Name=”PageSize” my:Value=”10″/>
<my:Property my:Name=”ShowTitleBar” my:Value=”false”/>
<my:Property my:Name=”ShowActionBar” my:Value=”false”/>
<my:Property my:Name=”ShowPreview” my:Value=”false”/>
<my:Property my:Name=”ShowSearchControl” my:Value=”false”/>
<my:Property my:Name=”EnableSelection” my:Value=”false”/>
<my:Property my:Name=”SingleSelection” my:Value=”false”/>
<my:Property my:Name=”ItemClickBehavior” my:Value=”ModelessDialog”/>
<my:Property my:Name=”ReadOnly” my:Value=”true”/>
</my:Properties>
</my:Control>
<my:Control my:Name=”SETUsedInTransitionMPRAsTransitionInSET” my:TypeName=”UocListView” my:Caption=”Used In Transition MPR As TransitionIN SET” my:Description=”This SET Is Used In A Transition MPR As A TransitionIN SET…”>
<my:Properties>
<my:Property my:Name=”ColumnsToDisplay” my:Value=”DisplayName,Disabled,GrantRight”/>
<my:Property my:Name=”ResultObjectType” my:Value=”ManagementPolicyRule”/>
<my:Property my:Name=”EmptyResultText” my:Value=”This SET Is NOT Used In A Transition MPR As A TransitionIN SET…”/>
<my:Property my:Name=”ListFilter” my:Value=”/ManagementPolicyRule[(ManagementPolicyRuleType=’SetTransition’ and ActionType=’TransitionIn’ and ResourceFinalSet=/Set[ObjectID=’%ObjectID%’])]”/>
<my:Property my:Name=”PageSize” my:Value=”10″/>
<my:Property my:Name=”ShowTitleBar” my:Value=”false”/>
<my:Property my:Name=”ShowActionBar” my:Value=”false”/>
<my:Property my:Name=”ShowPreview” my:Value=”false”/>
<my:Property my:Name=”ShowSearchControl” my:Value=”false”/>
<my:Property my:Name=”EnableSelection” my:Value=”false”/>
<my:Property my:Name=”SingleSelection” my:Value=”false”/>
<my:Property my:Name=”ItemClickBehavior” my:Value=”ModelessDialog”/>
<my:Property my:Name=”ReadOnly” my:Value=”true”/>
</my:Properties>
</my:Control>
<my:Control my:Name=”SETUsedInTransitionMPRAsTransitionOutSET” my:TypeName=”UocListView” my:Caption=”Used In Transition MPR As TransitionOUT SET” my:Description=”This SET Is Used In A Transition MPR As A TransitionOUT SET…”>
<my:Properties>
<my:Property my:Name=”ColumnsToDisplay” my:Value=”DisplayName,Disabled,GrantRight”/>
<my:Property my:Name=”ResultObjectType” my:Value=”ManagementPolicyRule”/>
<my:Property my:Name=”EmptyResultText” my:Value=”This SET Is NOT Used In A Transition MPR As A TransitionOUT SET…”/>
<my:Property my:Name=”ListFilter” my:Value=”/ManagementPolicyRule[(ManagementPolicyRuleType=’SetTransition’ and ActionType=’TransitionOut’ and ResourceCurrentSet=/Set[ObjectID=’%ObjectID%’])]”/>
<my:Property my:Name=”PageSize” my:Value=”10″/>
<my:Property my:Name=”ShowTitleBar” my:Value=”false”/>
<my:Property my:Name=”ShowActionBar” my:Value=”false”/>
<my:Property my:Name=”ShowPreview” my:Value=”false”/>
<my:Property my:Name=”ShowSearchControl” my:Value=”false”/>
<my:Property my:Name=”EnableSelection” my:Value=”false”/>
<my:Property my:Name=”SingleSelection” my:Value=”false”/>
<my:Property my:Name=”ItemClickBehavior” my:Value=”ModelessDialog”/>
<my:Property my:Name=”ReadOnly” my:Value=”true”/>
</my:Properties>
</my:Control>
</my:Grouping>
Ajoutez le, APRES StaticMembership et AVANT summaryGrouping

Sauvegardez le fichier
Importer le fichier dans le portail MIM en suivant les étapes ci-dessous :
Cliquez sur Administration
Cliquez sur Resource Control Display Configurations

Dans la barre de recherche du portail (en haut à droite), tapez : Configuration for Set Editing

Cliquez sur Configuration for Set Editing
Dans la section Configuration Data, cliquez sur Upload File

Cliquez sur OK et Submit
Lancer un prompt cmd en runas administrator
Tapez iisReset
Accédez au portail MIM et allez dans la section Sets
Sélectionnez un set et constatez qu’un nouvel onglet « Referencing MPRs » est apparu

Afficher le set ou le groupe auquel un utilisateur est lié
Loguez-vous sur le portail MIM (mimportal.red.lab) avec un compte membre du set Administrators ou avec le compte utilisé lors de l’installation du portail MIM.
Cliquez sur Administration
Cliquez sur Resource Control Display Configurations

Dans la barre de recherche du portail (en haut à droite), tapez : Configuration for User Editing

Cliquez sur Configuration for User Editing
Dans la section Configuration Data, cliquez sur Export configuration

Renommez le fichier en l’intitulant UserDefinition-EditingConfiguration.xml
Faites une copie du fichier précédemment renommé et l’intitulé UserDefinition-EditingConfiguration-original.xml
Ouvrez le fichier UserDefinition-EditingConfiguration.xml avec notepad (nous préconisons d’utiliser notepad++ pour plus de lisibilité)
Copiez le texte ci-dessous :
<my:Grouping my:Name=”GroupMembershipInfo” my:Caption=”Group Membership Info” my:Enabled=”true” my:Visible=”true”>
<my:Control my:Name=”memberOfSecurityGroups” my:TypeName=”UocListView” my:Caption=”Member Of Security Groups” my:Description=”This User Is A Member Of The Following Security Groups…”>
<my:Properties>
<my:Property my:Name=”ColumnsToDisplay” my:Value=”DisplayName,AccountName,Domain,Type,Scope,MembershipLocked,Owner”/>
<my:Property my:Name=”ResultObjectType” my:Value=”Group”/>
<my:Property my:Name=”EmptyResultText” my:Value=”The User Is NOT A Member Of Any Security Group…”/>
<my:Property my:Name=”ListFilter” my:Value=”/Group[(Type=’Security’ and ComputedMember=/Person[ObjectID=’%ObjectID%’])]”/>
<my:Property my:Name=”PageSize” my:Value=”10″/>
<my:Property my:Name=”ShowTitleBar” my:Value=”false”/>
<my:Property my:Name=”ShowActionBar” my:Value=”false”/>
<my:Property my:Name=”ShowPreview” my:Value=”false”/>
<my:Property my:Name=”ShowSearchControl” my:Value=”false”/>
<my:Property my:Name=”EnableSelection” my:Value=”false”/>
<my:Property my:Name=”SingleSelection” my:Value=”false”/>
<my:Property my:Name=”ItemClickBehavior” my:Value=”ModelessDialog”/>
<my:Property my:Name=”ReadOnly” my:Value=”true”/>
</my:Properties>
</my:Control>
<my:Control my:Name=”memberOfDistributionGroups” my:TypeName=”UocListView” my:Caption=”Member Of Distribution Groups” my:Description=”This User Is A Member Of The Following Distribution Groups…”>
<my:Properties>
<my:Property my:Name=”ColumnsToDisplay” my:Value=”DisplayName,AccountName,Domain,Type,Scope,MembershipLocked,Owner”/>
<my:Property my:Name=”ResultObjectType” my:Value=”Group”/>
<my:Property my:Name=”EmptyResultText” my:Value=”The User Is NOT A Member Of Any Distribution Group…”/>
<my:Property my:Name=”ListFilter” my:Value=”/Group[(Type=’Distribution’ and ComputedMember=/Person[ObjectID=’%ObjectID%’])]”/>
<my:Property my:Name=”PageSize” my:Value=”20″/>
<my:Property my:Name=”ShowTitleBar” my:Value=”false”/>
<my:Property my:Name=”ShowActionBar” my:Value=”false”/>
<my:Property my:Name=”ShowPreview” my:Value=”false”/>
<my:Property my:Name=”ShowSearchControl” my:Value=”false”/>
<my:Property my:Name=”EnableSelection” my:Value=”false”/>
<my:Property my:Name=”SingleSelection” my:Value=”false”/>
<my:Property my:Name=”ItemClickBehavior” my:Value=”ModelessDialog”/>
<my:Property my:Name=”ReadOnly” my:Value=”true”/>
</my:Properties>
</my:Control>
</my:Grouping>
Ajoutez le, APRES provisioningGroup et AVANT summaryGroup

Sauvegardez le fichier
Importer le fichier dans le portail MIM en suivant les étapes ci-dessous :
Cliquez sur Administration
Cliquez sur Resource Control Display Configurations

Dans la barre de recherche du portail (en haut à droite), tapez : Configuration for User Editing

Cliquez sur Configuration for User Editing
Dans la section Configuration Data, cliquez sur Upload File

Cliquez sur OK et Submit
Lancer un prompt cmd en runas administrator
Tapez iisReset
Accédez au portail MIM et allez dans la section User
Sélectionnez un set et constatez qu’un nouvel onglet « Referencing MPRs » est apparu
