AnsweredAssumed Answered

PolicyMgtApi - How do I add 'all' users using the Perl API?

Question asked by brettcarroll on Jan 3, 2014
Latest reply on Jul 28, 2014 by brettcarroll
Branched to a new discussion

I am trying to add an 'all' user to a policy I have created using the Perl PolicyMgtAPI, but am not sure how to accomplish this. 
 

Here is what I have:
$userDirObj = $session->GetUserDir("UserDirName");
$domainObj = $session->CreateDomain("DomainName","DomainDescription",1);

$domainObj->AddUserDir( $userDirObj );
$realmObj = $domainObj->CreateRealm("RealmName", $session->GetAgentGroup("AgentGroupName"), $session->GetAuthScheme("AuthSchemeName"), "RealmDescription", "/", 1, 1, 1, 7200, 3600, 0);
$policyObj = $domainObj->CreatePolicy("PolicyName","PolicyDescription",1);
$policyObj->AddRule( $realmObj->CreateRule("RuleName", "RuleDescription", "GET,POST", "*", 1, 0, "", 1) );
$policyObj->AddUser( HOW DO I ADD 'all' USERS );

Outcomes