Voraussetzung
-
Die TIA Portal Openness-Anwendung ist mit dem TIA Portal verbunden.
Siehe Verbindung zum TIA Portal aufbauen -
Ein Projekt ist geöffnet.
Siehe Öffnen eines Projekts
Einleitung
Sie können mit TIA Portal Openness einer im TIA Portal-Projekt hinzugefügten UMC-Benutzergruppe eine Rolle zuweisen.
Programmcode
|
private static void AssignedRoleToUMCUserGroup(UmacConfigurator umacConfigurationBuilder, string s_SystemRoleName, UmcUserGroup umcUserGroup) { //Assign the System Role. SystemRole engineeringSystemRole = umacConfigurationBuilder.SystemRoles. Find(s_SystemRoleName); umcUserGroup.Roles.Add(engineeringSystemRole); //Assign the Custom Role CustomRole customRole = umacConfigurator.CustomRoles.Create("CustomRole"); umcUserGroup.Roles.Add(customRole); } |
Siehe auch