Questions Tagged With rolehttps://answers.axonivy.com/tags/role/?type=rssquestions tagged <span class="tag">role</span>enTue, 10 Mar 2020 04:57:14 -0400Trigger LDAP/AD role mapping by APIhttps://answers.axonivy.com/questions/4448/trigger-ldap-ad-role-mapping-by-api<p>Cheers,</p> <p>is there any way to trigger the synchronization with the LDAP / ActiveDirectory by calling an API endpoint? Or can I schedule the cron to run more than once daily?</p> <p>The background is that a customer might be modifying some role mappings on demand or shortly before starting a workflow.</p> <p>The version in question unfortunately is still 7.2.1, which contains a sync button in the RIA only. </p>mhoffmannTue, 10 Mar 2020 04:57:14 -0400https://answers.axonivy.com/questions/4448/trigger-ldap-ad-role-mapping-by-apiapiroleldapHow to set multiple responsible roles for a process start requesthttps://answers.axonivy.com/questions/4151/how-to-set-multiple-responsible-roles-for-a-process-start-request<p>How can we set more than one role as "Responsible role" on a Request Start element on the Request tab. Users with different roles (not able to organize under one commen role tree node) should see a process in the portal and should be able to start it.</p> <p>My workaround at the moment is to define two different start elements, which are identical except the responsible role. It works, but... If one user holds both roles, he will see two identical processes.</p> <p>Thanks for help.</p>Adrian ImfeldThu, 07 Nov 2019 09:49:11 -0500https://answers.axonivy.com/questions/4151/how-to-set-multiple-responsible-roles-for-a-process-start-requestprocessrequestsecurityrolewho can run a task vs who can see a taskhttps://answers.axonivy.com/questions/3622/who-can-run-a-task-vs-who-can-see-a-task<p>Hi,</p> <p>Is it possible to make a task visible to a specified ROLE but only one user can Run it ? </p> <p>illustration : i want to assign a task to a user in a specific department, but i also want all the users in that department to be able to see the task and track it, but they cannot work on it. </p> <p>a work-around i came up with is to assign the task to the whole department, but hide the "run" button based on a custom field value in the task. also I added another layer of authentication when the task starts in order to increase security.(see the diagram ) <img alt="alt text" src="https://i.ibb.co/ky30z9Z/2019-01-21-16-09-07-Sample-Project-validation-Moqups.png"></p> <p>is this work-around secure ? </p> <p>is there a general solution for this issue ? </p> <p>i am using v 7.0.2 </p>Mohammed ShabanaMon, 21 Jan 2019 03:20:48 -0500https://answers.axonivy.com/questions/3622/who-can-run-a-task-vs-who-can-see-a-tasktaskstasklistroleuserOld userrole mapping still remain after renaming rolehttps://answers.axonivy.com/questions/3224/old-userrole-mapping-still-remain-after-renaming-role<p>Hi ivyteam</p> <p>In my project, i have the role name <code>Front RM</code> and i assign some users for it. Then some version later i rename that role to <code>FrontRM</code> (remove space). That mean all users will be mapped to <code>FrontRM</code></p> <p>Now i use <code>ivy.session.getSessionUser().getRoles()</code> but it always say that user has two roles <code>Front RM</code> and <code>FrontRM</code>.</p> <p>I've investigated then see that there still remain old mapping between user and old role. That's mean when i rename a role, ivy actually add a new role with new name and keep old one with mapping. I explained in this picture: <img alt="alt text" src="https://answers.axonivy.com/upfiles/Untitled_ksSIFXV.png"></p> <p>Some questions:</p> <ol> <li>Why ivy still keep old role + old mapping? it's because of multiple PMVs? But in case there is only one PMVs so could ivy remove unnecessary role completely?</li> <li>Does api <code>ivy.session.getSessionUser().getRoles()</code> return correct roles as it display on Admin Tool? If not can i base on any flag to remove that <code>inactive</code> role?</li> </ol> <p>Thanks</p>trungdvThu, 19 Apr 2018 07:03:43 -0400https://answers.axonivy.com/questions/3224/old-userrole-mapping-still-remain-after-renaming-roleroleActive ivy rolehttps://answers.axonivy.com/questions/2745/active-ivy-role<p>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</p>nguyenbkcseMon, 10 Jul 2017 14:08:32 -0400https://answers.axonivy.com/questions/2745/active-ivy-roleroleAdding a role in ivy enginehttps://answers.axonivy.com/questions/2716/adding-a-role-in-ivy-engine<p>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?</p> <p>Thanks for you feedback</p>Alex ReichTue, 27 Jun 2017 08:16:51 -0400https://answers.axonivy.com/questions/2716/adding-a-role-in-ivy-engineenginerolePossibility to change role display names without developing update procedure/update processhttps://answers.axonivy.com/questions/2048/possibility-to-change-role-display-names-without-developing-update-procedure-update-process<p>Is there possibility to change role display names without developing such update procedure/update process ? </p> <p>Somewhere in administration similar to user edit. I know there is maybe a chance to do it updating iwa_roles, which i would like to avoid. The customer want to see modified role names in workflowUi lists (all tasks - activator user/role), without changing the workflow etc.</p>josef_koupalMon, 26 Sep 2016 15:39:41 -0400https://answers.axonivy.com/questions/2048/possibility-to-change-role-display-names-without-developing-update-procedure-update-processadministrationroleDisplay name of ivy rolehttps://answers.axonivy.com/questions/2046/display-name-of-ivy-role<p>Is there a possibility to set Ivy role the display name ? There sure is one in designer - roles editor. But i wonder if i can do such thing on server with 'living' roles. Or even those synchronized with Novell.</p>josef_koupalMon, 26 Sep 2016 14:03:59 -0400https://answers.axonivy.com/questions/2046/display-name-of-ivy-roleadministrationsecurityroleivyAssign and revoke Role to Session User dynamicallyhttps://answers.axonivy.com/questions/1703/assign-and-revoke-role-to-session-user-dynamically<p>Hello,</p> <p>I need to assign and revoke Ivy Role dynamically on the session user. If I understand the API documentation well, the following method assigns the given role to the session, the role should be automatically unassigned after logout: Ivy.session().assignRole(role);</p> <p>Here the API documentation:</p> <p><em>@PublicAPI(value=EXPERT) Assigns a role to the session. Parameters:role The role to assign</em></p> <p>The problem is that I need also to revoke an Ivy Role dynamically, I could not find a method like Ivy.session().revokeRole(IRole role) or Ivy.session().unassignRole(Irole role). Is there a possibility to do that?</p> <p>Thanks a lot in advance.</p> <p>Emmanuel</p>EmmanuelThu, 31 Mar 2016 10:26:20 -0400https://answers.axonivy.com/questions/1703/assign-and-revoke-role-to-session-user-dynamicallysessionroleuserTask for every user with a specific Role (dynamically)https://answers.axonivy.com/questions/1621/task-for-every-user-with-a-specific-role-dynamically<p>Is it possible to create a task which has to be completed by every user of a specific role, which should be determined dynamically? I.e. if I have three users which own a role, all three users have to complete this task. The more convinient way would be, if all three get an own task in ther "Personal Task List".</p> <p>Thanks in advance for any answers.</p>rhorberThu, 07 Jan 2016 15:37:10 -0500https://answers.axonivy.com/questions/1621/task-for-every-user-with-a-specific-role-dynamicallytaskroleuserHow to check whether role is obsolete?https://answers.axonivy.com/questions/1191/how-to-check-whether-role-is-obsolete<p>I have some roles in application which are obsolete because the pmv they belong to is deleted or archived. So my question is how to check these roles whether are obsolete, do we have API to to it? Thanks for your interested</p>hungnamTue, 03 Mar 2015 12:24:08 -0500https://answers.axonivy.com/questions/1191/how-to-check-whether-role-is-obsoleterolePermissionDeniedException when calling iUser.getAllRoles()https://answers.axonivy.com/questions/548/permissiondeniedexception-when-calling-iuser-getallroles<p>My call to </p> <blockquote> <p><code>aUser.getAllRoles();</code></p> </blockquote> <p>throws the exception:</p> <blockquote> <p>PermissionDeniedException: Session 1 (cuongtruc.tran) is not allowed to call method public java.util.List ch.ivyteam.ivy.security.internal.User.getAllRoles(). The session does not fulfill the permission rule SESSION (MATCHES THIS AND OWNS UserReadOwnRoles PERMISSION) OR OWNS UserReadRoles PERMISSION OR OWNS UserReadRoles@SYSTEM PERMISSION</p> </blockquote> <p>I even tried with grant admin permisson to that user but still throws the same exception.</p>Tran Cuong TrucWed, 26 Feb 2014 05:16:00 -0500https://answers.axonivy.com/questions/548/permissiondeniedexception-when-calling-iuser-getallrolessecurityroleuseris it possible to find IRoles by using "contains" or "like" as SQL statement?https://answers.axonivy.com/questions/485/is-it-possible-to-find-iroles-by-using-contains-or-like-as-sql-statement<p>In currently, we can find exactly an IRole by using "ivy.wf.getSecurityContext().findRole()"</p> <p>But, how can we get a list of IRoles that having same prefix name, or using a keyword to get all IRoles into a list?</p> <p>Thank you very much.</p>nghianguyenWed, 22 Jan 2014 08:34:48 -0500https://answers.axonivy.com/questions/485/is-it-possible-to-find-iroles-by-using-contains-or-like-as-sql-statementroleHow can I create a role at runtime dynamically?https://answers.axonivy.com/questions/264/how-can-i-create-a-role-at-runtime-dynamically<p>Is there any public APIs to make an IRole at runtime by programming? </p> <p>Because in our project, we need a process to handle add/remove IRole automatically (no need to login to Ivy Server and create it by manually)</p> <p>Thank you so much.</p>nghianguyenMon, 20 Jan 2014 07:47:27 -0500https://answers.axonivy.com/questions/264/how-can-i-create-a-role-at-runtime-dynamicallyapirole