Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9080

Re: How to create new Business Role by Copy

$
0
0

Hi Michaela,

 

Your requirement is "select one Role and create a copy new Role which not exist in the IDM and assign all privileges"


I have done in my environment the following way. Tested and working fine.


While creating a new role, select the reference role (of whose privileges are to be copied), and all the privileges are copied to the new role. You can alter this according to your requirement. if you want to implement the exact the same way you need. Else you can use the below approach.


I have created a Z_REF_ROLE attribute with following storage fields.

Scree-1.png


Then I have created a new ordered task with attributes as shown below.


Screen1.png


Under this ordered task, I have created a To Identity Store pass and configured the destination tab as below.


Screen2.png


After that, enable the pass, configure the dispatchers. Now in the IDM UI, you have to do the following. Select the copy business role task in the screen UI.


Screen3.png


In the below scrren, provide the new role name, description and select the reference role from which the privileges has to be configured.


Scren4.png

Click on save/submit.


The new role is created with the privileges copied from the referenced role.


Screen5.png


Thats it !!


Finally here is the script as you requested.


//###############################################


// Main function: z_getrefprivileges

 

 

function z_getrefprivileges(Par){

  //Example calling DSE internal function

  //uStop("Terminated by user");

  var rolemskey = "";

  var sql ="";

  rolemskey = Par;

  sql = "select mcThisMSKEY from idmv_link_ext where mcOtherMSKEY="+rolemskey+" and mcThisOcName in ('MX_PRIVILEGE')";

 

 

  var result ="";

  result = uSelect(sql);

  result = uReplaceString(result, "!!", "|");

  return result;

}

 

//###############################################

 

All the best !!

 

~ Krishna.


Viewing all articles
Browse latest Browse all 9080

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>