AnsweredAssumed Answered

Checking existence of a given group

Question asked by jeperon on Jul 4, 2007
Latest reply on Jul 16, 2007 by andy
Hi,

I'm currently using Alfresco 2.0, and I need to set permission on a given Node.

I want to check that the permission I'm giving are given to a group that currently exists. In order to check that existence I'm using the AuthorityService:

authorityService.authorityExists("GROUP_toto");

This works if I'm an administrator, but not if I do that as a simple user, I'm given the following exception:

org.alfresco.repo.security.permissions.AccessDeniedException: Access Denied.  You do not have the appropriate permissions to perform this operation.

How should I do to make it work as a simple user ?

PS: the equivalent to check if a user exist is personService.personExists("myPerson"); which is working fine at anytime.

Thanks a bunch

———-
Julien Eperon, Optaros

Outcomes