- package com.oimacademy.role;
- import java.util.*;
- import oracle.iam.identity.rolemgmt.api.RoleManager;
- import oracle.iam.identity.vo.IdentityManagerResult;
- import oracle.iam.platform.OIMClient;
- public class RevokeRoleGrants {
- public static void main(String[] args) throws Exception {
- OIMClient oimClient = LocalTest.newOimClient();
- RoleManager roleManager = oimClient.getService(RoleManager.class);
- String userKey = "8"; // PAHG856
- Set<String> userRoles = new HashSet<>();
- userRoles.add("10");
- userRoles.add("11");
- // select ugp_key from usg where usr_key = ?
- IdentityManagerResult result = roleManager.revokeRoleGrants(userKey, userRoles);
- // select ugp_key from usg where usr_key = ?
- System.out.println(result.getStatus()); // COMPLETED
- System.out.println(result.getEntityId());
- System.out.println(result.getSucceededResults());
- System.out.println(result.getFailedResults());
- }
- }
Oracle Identity Manager(OIM) is the Provisioning Solution from oracle. This page contains an index with references to all OIM related posts in the oracle identity manager Academy blog. The posts included herein are intended to provide oracle identity management customers and developers with technical information about best practices for implementing OIM based solutions.
OIM API for Revoke Role Grants
Subscribe to:
Post Comments (Atom)
-
Connection Related API's : OIM DB Connection/ Data Source connection OIMClient API / OIMConnection API OIM Platform API to getSer...
-
Error : Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.springframewor...
-
In this post, we set the middle name as “MiddleName” if user does not provide middle name during user create operation. Below are high...
No comments:
Post a Comment