2. Set the class for your 'App Explorer' to 'Data-Admin-Operator-ID'.
3. Click on the Text of 'Data-Admin-Operator-ID' to list all the instances of the class (that is : all operators).
Then you can click into individual operators ; switch to the security tab and check the 'Disable Operator' checkbox - and finally save the operator.
When you now attempt to login with this Operator ('[email protected]' in this example) you will be prevented from logging in:
You can do this automatically by opening up the relevant Operator Records in an Activity ; setting the "pyOperatorIsDeactivated" property to 'true' and saving.
Here's an example (it only does a single Operator here; you would need to expand it for multiple Operators - probably using an 'OBJ-BROWSE' (be careful not to disable ALL Operators though!)) of doing this through an Activity:
1. Page-New "OperatorPage" (Data-Admin-Operator-ID)
2. Obj-Open With .pyUserIdentifier = '[email protected]'
3. Property-Set .pyOperatorIsDeactivated = true
4. Obj-Save (NB: Use 'Write-Now' if running from Designer Studio; do NOT use this as part of Flow etc!)
5. Remove-Page "OperatorPage"
Posted: 5 years ago
Posted: 8 May 2017 3:27 EDT
Santhosh Bagannagari (bagas)
Tech Lead, Security Engineering
If you are on Pega 7.2.2, you can do as @PRITJ suggested. You can use secure mode installation to deactivate all pega operators except "[email protected]". To activate those operators post installation, you can use Operator Access landing page (DesignerStudio --> Org & Security --> Authentication -->Operator access).