<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Adding a role in ivy engine</title><link>https://answers.axonivy.com/questions/2716/adding-a-role-in-ivy-engine</link><description>&lt;p&gt;Is there a possibility to add a role directly in ivy engine, without creating it first in designer and deploying on ivy engine. Something like createUser(String,String,String,java.util.Locale,String,String).
Or is it planned to have this possibility one day in the admin page for ivy engine?&lt;/p&gt;
&lt;p&gt;Thanks for you feedback&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2716/adding-a-role-in-ivy-engine" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 28 Jun 2017 02:34:09 -0400</lastBuildDate><item><title>Comment by Reto Weiss on Reto Weiss's answer</title><link>https://answers.axonivy.com/questions/2716/adding-a-role-in-ivy-engine#2723</link><description>&lt;p&gt;Hi Alex&lt;/p&gt;
&lt;p&gt;The role stays there forever even if you deploy new or the same projects with the other roles with or without the new role. Does not depend. However, the role has a flag that it was created dynamically (See last parameter true). This means that the project that has created the role is also responsible for its administration (edit, delete, etc.)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Wed, 28 Jun 2017 02:34:09 -0400</pubDate><guid>https://answers.axonivy.com/questions/2716/adding-a-role-in-ivy-engine#2723</guid></item><item><title>Comment by Alex Reich on Reto Weiss's answer</title><link>https://answers.axonivy.com/questions/2716/adding-a-role-in-ivy-engine#2722</link><description>&lt;p&gt;Hi Reto&lt;/p&gt;
&lt;p&gt;thanks for your answer. 
What happens with such a role after a deployment, without this new role in the deployed projects?&lt;/p&gt;
&lt;p&gt;Thanks and best regards
Alex&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Reich</dc:creator><pubDate>Wed, 28 Jun 2017 02:13:20 -0400</pubDate><guid>https://answers.axonivy.com/questions/2716/adding-a-role-in-ivy-engine#2722</guid></item><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/2716/adding-a-role-in-ivy-engine/2720</link><description>&lt;p&gt;Hi Alex&lt;/p&gt;
&lt;p&gt;You can use the following non Public API:&lt;/p&gt;
&lt;p&gt;ivy.wf.getSecurityContext().getTopLevelRole().createChildRole("MyRole", "DisplayNameOfMyRole", "Description of MyRole", true);&lt;/p&gt;
&lt;p&gt;to add a new role.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Reto Weiss, Axon.ivy Support&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Tue, 27 Jun 2017 11:21:13 -0400</pubDate><guid>https://answers.axonivy.com/questions/2716/adding-a-role-in-ivy-engine/2720</guid></item></channel></rss>