Methoden für die Regel „Benutzerdefiniert“
Mithilfe der folgenden Methoden können Sie benutzerdefinierte Regeln definieren.
Methode | Typ | Beispielbedingung |
---|---|---|
HasMatch(string originalString, params string[] matches) | bool |
HasMatch(UserName,"tschuster") HasMatch(UserName, "tschuster", "mklimke", "relsner") HasMatch(EmailAddress, "*@firma.com") |
HasUserNameMatch(params string[] matches) | bool | HasUserNameMatch("tschuster", "mklimke", "relsner") |
HasEmailAddressMatch(params string[] matches) | bool | HasEmailAddressMatch("*@firma.com") |
HasOnlyRolesWithin(bool usedRolesOnly, params string[] matches) |
bool |
HasOnlyRolesWithin(false, "Dev*", "Manager") Gültige Werte für usedRolesOnly:
Situationsbeispiel:
Jeder Satz an Rollen, der nur Elemente innerhalb des Supersets (Dev*, Manager) enthält, wird als gültig betrachtet. In diesem Beispiel werden die folgenden Rollen als zum Superset (Dev*, Manager) gehörig betrachtet:
Benutzer1 (Dev1, Manager, Tester) hat nicht nur Rollen inne, die zum Superset (Dev*, Manager) gehören, weil die Rolle „Tester“ im Superset nicht enthalten ist. Hinweis: HasOnlyRolesWithin unterstützt kombinierte Rollen.
|
HasOnlyRolesWithin(bool usedRolesOnly, params string[] matches) | bool |
HasRoleMatch(true, "MeineRolle1") Gültige Werte für usedRolesOnly:
|
HasUserGroupMatch(string params string[] matches) | bool | HasEmailAddressMatch("*@firma.com") |
HasUserNameMatch(params string[] matches) | bool | HasEmailAddressMatch("*@firma.com") |
HasCurrentLicenseTypeMatch(string params string[] matches) | bool | HasEmailAddressMatch("*@firma.com") |
GetTransactionProfilePercentage(string profileName) | double | GetTransactionProfilePercentage("ProfessionalProfil") > 0.9 |
HasTransactionProfileLimitMatch(string mandatoryTransactionProfileName, string allowedTransactionProfileName, string prohibitedTransactionProfileName) | bool | HasTransactionProfileLimitMatch("ErforderlichesProfil", "ZulässigesProfil", "UnzulässigesProfil") |
GetTransactionProfileNumberObjectsUsed(string sapTransactionProfileName) | integer | GetTransactionProfileNumberObjectsUsed ("ProfessionalProfil") > 50 |
GetTransactionProfileNumberTransactionsUsed (string sapTransactionProfileName) | integer | GetTransactionProfileNumberTransactionsUsed ("ProfessionalProfile") > 30 |
GetTransactionProfileNumberReportsUsed(string sapTransactionProfileName) | integer | GetTransactionProfileNumberReportsUsed ("ProfessionalProfile") > 15 |
GetTransactionProfileNumberJobsUsed(string sapTransactionProfileName) | integer | GetTransactionProfileNumberJobsUsed ("ProfessionalProfile") > 5 |
HasTransactionProfileMaxObjectTypesMatch (string sapTransactionProfileName, int maxTransaction, int maxReport, int maxJob) | bool | HasTransactionProfileMaxObjectTypesMatch ("ProfessionalProfile", 30, 15, 5) |
TotalConsumptionInRange(string p_ConsumptionType, double p_fromCPUTime, double p_toCPUTime, double p_fromAccessCount, double p_toAccessCount) | bool |
TotalConsumptionInRange("CPUTime", 0, 100, 0, 0) Optionen für p_ConsumptionType:
|
GetRoles(bool usedRolesOnly) | string[] |
GetRoles(false) Parameter für usedRolesOnly:
|
GetRoles(bool usedRolesOnly, bool withoutCompositeRole = false)) | string[] |
GetRoles(false) Parameter für usedRolesOnly:
|
IsLowConsumption(string p_ConsumptionType, double p_maxCPU, double p_maxAccessCount) | bool |
IsLowConsumption("CPUTime", 1000, 0) Optionen für p_ConsumptionType:
|
IT Asset Management (Cloud)
Current