How can I grant additional permissions to a user or role in Designer? There seems to be no editor to configure that.

asked 25.04.2014 at 08:46

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.9k202857
accept rate: 74%


In Xpert.ivy Designer there is no editor to configure the permissions of users and roles. However, you can implement a simple process to grant permissions to users and roles. Use the following script to do so:

import ch.ivyteam.ivy.security.IRole;
import ch.ivyteam.ivy.security.IUser;
import ch.ivyteam.ivy.security.IPermission;

IPermission permission = IPermission.TASK_RESET_OWN_WORKING_TASK;

// Grant Permission to Role
IRole testRole = ivy.wf.getSecurityContext().findRole("Test");
ivy.wf.getApplication().getSecurityDescriptor().grantPermission(permission, testRole);

// Grant Permission to User 
IUser testUser = ivy.wf.getSecurityContext().findUser("Test");
ivy.wf.getApplication().getSecurityDescriptor().grantPermission(permission, testUser);
link

answered 25.04.2014 at 08:49

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.9k202857
accept rate: 74%

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:

×78
×40

Asked: 25.04.2014 at 08:46

Seen: 3,989 times

Last updated: 25.04.2014 at 08:49