Identity Manager supports the Suspend capabilities described in the following table.
Table 2–7 Suspend Capabilities
Capability |
Description |
Caveats |
---|---|---|
ActiveRequest |
Returns a boolean value that indicates whether the user is enabled. |
None |
ResumeRequest |
Resumes (enables) a PSO user. |
Does not support EffectiveDate. If you set EffectiveDate, Identity Manager returns an OperationNotSupported error. |
SuspendRequest |
Suspends an account/PSO (disables). |
Does not support EffectiveDate. If you set EffectiveDate, Identity Manager returns an OperationNotSupported error. |
The following examples suspend and resume a request.
// Disable example SessionAwareSpml2Client client = new SessionAwareSpml2Client("http://example.com:8080 /idm/servlet/openspml2"); ListTargetsResponse loginInfo = client.login("Configurator", "configurator"); PSOIdentifier psoId = new PSOIdentifier("maurelius", null, null); SuspendRequest req = new SuspendRequest(); req.setPsoID(psoId); SuspendResponse res = (SuspendResponse) client.send(req); if (res.getStatus().equals(StatusCode.SUCCESS)) { System.out.println("Account successfully disabled."); } // Enable example SessionAwareSpml2Client client = new SessionAwareSpml2Client("http://example.com:8080 /idm/servlet/openspml2"); ListTargetsResponse loginInfo = client.login("Configurator", "configurator"); PSOIdentifier psoId = new PSOIdentifier("maurelius", null, null); ResumeRequest req = new ResumeRequest(); req.setPsoID(psoId); ResumeResponse res = (ResumeResponse) client.send(req); if (res.getStatus().equals(StatusCode.SUCCESS)) { System.out.println("Account successfully enabled."); }