cancel
Showing results for 
Search instead for 
Did you mean: 

Make Space is read only by others

fthamura
Champ in-the-making
Champ in-the-making
I want to have 3 users in my alfresco box, and one can create, edit, delete, and the other user only can read it, and the others can not see it.

anytips for this?
5 REPLIES 5

kevinr
Star Contributor
Star Contributor
Hello,

Yes you can do this. If you use the "Manage Space Users" dialog from the More… actions menu for a space, you can then Invite users into your space with various roles (including GUEST role which gives READ ONLY access). Permissions for a space are inherited from the parent space by default, you can change this behaviour using the "Inherit Parent Space Permissions" checkbox in the Manage Space Users dialog. Using a combination of this and only inviting users with the appropriate role you can create private spaces or spaces that only certain users can access.

Hope this helps,

Kevin

gnewtonaus
Champ in-the-making
Champ in-the-making
Hi,

I've just tried doing this but the lowest role available seems to be "Consumer". There is no "guest" role in the list! (I'm using Alfresco 2.0).

How do I make it so my read-only user does not get the Create menu or the Actions next to each content item?

Regards,
Greg Newton

kevinr
Star Contributor
Star Contributor
Sorry yes CONSUMER is the Read-only role. Invite the user to the space/content with the Consumer role and they won't be able to create/edit.

Thanks,

Kevin

clincks
Champ in-the-making
Champ in-the-making
In the same idea…

I cut inheritance to a node.
I would like to invite only some people with specific role…
and everybody else with CONSUMER role.

How to invite "everybody" with "CONSUMER" role?

I tried this:

// Cut inheritance
      permissionService.setInheritParentPermissions(nodeRef, false);
      // Allow EVERYONE has CONSUMER
      permissionService.setPermission(nodeRef, AuthorityType.EVERYONE
            .toString(), PermissionService.CONSUMER, true);
      // Allow GUEST has CONSUMER
      permissionService.setPermission(nodeRef,
            AuthorityType.GUEST.toString(), PermissionService.CONSUMER,
            true);
      // Allow USER has CONSUMER
      permissionService.setPermission(nodeRef, AuthorityType.USER.toString(),
            PermissionService.CONSUMER, true);

but it doesn't work.

Thanks for help.

Stephane

clincks
Champ in-the-making
Champ in-the-making
I found the solution…

// Cut inheritance
permissionService.setInheritParentPermissions(nodeRef, false);
// Allow EVERYONE has CONSUMER
permissionService.setPermission(nodeRef,
PermissionService.ALL_AUTHORITIES, PermissionService.CONSUMER,
            true);
// Allow GUEST has CONSUMER
permissionService.setPermission(nodeRef,
PermissionService.GUEST_AUTHORITY, PermissionService.CONSUMER,
            true);

Problem closed.

Stephane