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?

Thanks for you feedback

asked 27.06.2017 at 08:16

Alex%20Reich's gravatar image

Alex Reich
(suspended)
accept rate: 0%


Hi Alex

You can use the following non Public API:

ivy.wf.getSecurityContext().getTopLevelRole().createChildRole("MyRole", "DisplayNameOfMyRole", "Description of MyRole", true);

to add a new role.

Regards

Reto Weiss, Axon.ivy Support

link

answered 27.06.2017 at 11:21

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.9k202857
accept rate: 74%

Hi Reto

thanks for your answer. What happens with such a role after a deployment, without this new role in the deployed projects?

Thanks and best regards Alex

(28.06.2017 at 02:13) Alex Reich Alex%20Reich's gravatar image

Hi Alex

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.)

(28.06.2017 at 02:34) Reto Weiss ♦♦ Reto%20Weiss's gravatar image

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×44
×14

Asked: 27.06.2017 at 08:16

Seen: 2,333 times

Last updated: 28.06.2017 at 02:34