package com.massiveGaze.role; import java.util.HashSet; import java.util.List; import java.util.Set; import oracle.iam.identity.rolemgmt.api.RoleManager; import oracle.iam.identity.rolemgmt.vo.Role; import com.massiveGaze.connection.Platform; public class AssignMutipleRolesToUser { public static void main(String[] args) throws Exception { String ROLE_NAME_PREFIX = "MyRole*"; RoleManager roleMgr = Platform.getService(RoleManager.class); List<Role> roleList = new SearchRole().searchRoleConfigParams(ROLE_NAME_PREFIX); Set userKeys = new HashSet(); userKeys.add("5005"); for(Role role: roleList){ roleMgr.grantRole(role.getEntityId(),userKeys); System.out.println("Granted role -> "+role.getEntityId()+ " To user -> "+userKeys); } } }
Oracle Identity Manager (OIM R2PS2/PS3/12C) is a highly flexible and scalable enterprise identity administration system that provides operational and business efficiency by providing centralized administration & complete automation of identity and user provisioning events across enterprise as well as extranet applications.
OIM API to Assign Mutiple RolesToUser
Subscribe to:
Posts (Atom)
About OIM
Oracle Identity Management enables organizations to effectively manage the end - to - end life - cycle of user ide...
Popular Posts
-
OIM API's Sample Code : Videos: Massive Gaze Videos Connection Related API's : OIM DB Connection/ Data Source connection ...
-
Videos: Massive Gaze Videos 1. Basic OIM Information 2. MDS Export/Import 3. Steps For R2PS2 / R2PS3 Custom Pre-processor Ev...
-
Videos: Massive Gaze Videos 1. Query to get OIM Provsioned/provisioning Account details 2. Query to get usr keys For Rejected / ...
No comments:
Post a Comment