To read a users name (User.getName()) whitin a script element, I assigned the corresponding permission "UserReadAll" to the role the calling user owned. Nevertheless, ivy reports the Error "The session does not fulfill the permission rule SESSION (MATCHES THIS AND OWNS UserReadOwnName PERMISSION) OR OWNS UserReadName PERMISSION OR OWNS UserReadName@SYSTEM PERMISSION" After that, I added also the permission "UserReadName/UserReadFullName" and then it worked.

What's the difference between "UserReadAll" and "UserReadName"? In my opinion, the "UserReadAll" permission should cover and allow all "Read" operations on a user object.

Is there any documentation which explains the permission concept of ivy? I couldn't find any detailed information about in the documentation section available on the xpert.ivy download area.

Thanks and regards, Stefan

asked 20.10.2014 at 10:35

Stefan's gravatar image

accept rate: 60%

The permission UserReadAll is necessary to call methods like ISecurityContext#getUsers() or ISecurityContext#findUser(...). So it gives you the right to access all user objects.

The permission UserReadName gives you the right to call the method IUser#getName() on any user object.

The permission UserReadOwnName gives you the right to call method IUser#getName() on the user object that represents yourself. E.g. the user object that is associated with the current session.


answered 20.10.2014 at 16:57

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
accept rate: 74%

Thanks, Reto. Is there any detailed documentation available?

(21.10.2014 at 07:28) Stefan Stefan's gravatar image

Hi Stephan

See question to find out where the permissions needed to call a method is documented

(21.10.2014 at 10:03) Reto Weiss ♦♦ Reto%20Weiss's gravatar image
Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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



Asked: 20.10.2014 at 10:35

Seen: 961 times

Last updated: 21.10.2014 at 10:03