- package com.oimacademy.NeedEvaluate;
- import java.util.HashSet;
- import java.util.Set;
- import com.oimacademy.connection.Platform;
- import oracle.iam.identity.rolemgmt.api.RoleManager;
- public class RevokeRoleGrant {
- public static void revokeRoleGrant() {
- RoleManager rolemanagersvc = Platform.getService(RoleManager.class);
- String roleKey = "27"; // role key of the role to be removed testrole
- String usrKey = "2010"; // usr key of the user from which the role must
- Set<String> usrKeys = new HashSet<String>();
- usrKeys.add(usrKey);
- try {
- rolemanagersvc.revokeRoleGrant(roleKey, usrKeys);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- public static void main(String args[]) {
- revokeRoleGrant();
- }
- }
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 To Revoke Grants From Role
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