<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Active ivy role</title><link>https://answers.axonivy.com/questions/2745/active-ivy-role</link><description>&lt;p&gt;Hi every body, I used ivy API createChildRole(...) to create a new child role of an existed role, but I checked and known that the new role is not active (by calling method SecurityContext.getActiveRoles() to return a list of active roles, but the new role was not included in that list). Anyone know how to active that role by ivy API?
Thank you&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2745/active-ivy-role" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 12 Jul 2017 05:51:42 -0400</lastBuildDate><item><title>Answer by Flavio Sadeghi</title><link>https://answers.axonivy.com/questions/2745/active-ivy-role/2748</link><description>&lt;p&gt;Dear &lt;a href="http://answers.axonivy.com/users/845/nguyenbkcse"&gt;&lt;a href="http://answers.axonivy.com/users/845/nguyenbkcse"&gt;@nguyenbkcse&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As &lt;a href="http://answers.axonivy.com/users/118/trungdv"&gt;&lt;a href="http://answers.axonivy.com/users/118/trungdv"&gt;@trungdv&lt;/a&gt;&lt;/a&gt; has pointed out:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The method SecurityContext.getRoles() returns all roles of the current running application. Whether the roles are still used or not.&lt;/li&gt;
&lt;li&gt;The method SecurityContext.getActiveRoles() returns all roles which are still defined in a active PMV (active = release state of the pmv is released or deprecated). Roles created by API will not be defined in a PMV (in a Project/roles.roleconfig file). Therefore they are not listed as active roles. The naming 'active' may lead to confusion. Basically the idea was to filter roles, which are no longer defined in project, since they are no longer used in a current running process and only exists to tracking workflow history...&lt;/li&gt;
&lt;/ul&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Flavio Sadeghi</dc:creator><pubDate>Wed, 12 Jul 2017 05:51:42 -0400</pubDate><guid>https://answers.axonivy.com/questions/2745/active-ivy-role/2748</guid></item></channel></rss>