Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

How to make guests to act as owners in the room

Avatar

Former Community Member
Hi,

I was wondering how to make guests of the app. in the room to
act as owners on files and

CollectionNodes.

Currently when I try to upload file being a guest I get

"FileManager.clearFileDescriptor: You have insufficient
privileges for update." exception.

and when I try to delete a file I get

"FileManager.clearFileDescriptor: You have insufficient
privileges for update." exception

when I try to change "Access Model" and "Publish model" in
"Change File Configuration" window it does not work.



Changing the rights to every CollectionNode in the room to 10
is not an option.

"Auto-promote" users does not make any changes.



Please help



thanks







6 Replies

Avatar

Former Community Member
Hi,



Autopromote should work. Please use the dev console to
autopromote users in room and see the debug console logs when a
user enters. It's role should be 50. You can also use the
devconsole to change node configurations.

You can upload/download a file if you are a publisher ( i.e.
role = 50 or above) which you will have if autopromote is set to
true.

You don't need to ideally make an user a owner for
upload/download of files. But in case you want to make an user as
owner, you can do so either in devconsole or in code by calling the
setUserRole method in UserManager with something like
usermanager.setUserRole(userID,UserRoles.OWNER) where userID is the
ID of the user you want to promote. You should be an owner to call
this method.



Thanks

Hironmay Basu

Avatar

Former Community Member
Hironmay,

thanks for your quick reply

please advise something about CollectioNodes.

For now when I am a "pulisher" and try to create a new
CollectionNode I get

"Error - insufficient permissions to create a new
CollectionNode. You must be an OWNER of the room to add new
multi-user features to it. "

exception.

Avatar

Former Community Member
Hi,



For Creating a collection , you have to be an owner of the
room i.e. login with your credentials. Normally, in an app, you
need to first go as an host/owner and that creates and sets up the
collectionnodes for your applications and then users/guests can go
in and use them. You can also use the dev console to create the
Collection Nodes and its underlying nodes and its configurations.



Thanks

Hironmay Basu

Avatar

Former Community Member
Hironmay,

I have some problems connecting to new room sometimes.

I get

"ReferenceError: Error #1056: Cannot create property isPeer
on com.adobe.rtc.sharedManagers.descriptors.UserDescriptor."

exception.

What may be wrong ?



thanks !

Avatar

Former Community Member
Hi,



I guess you are using the player 10 swc. So, here is the
rule. Normally I would recommend using player 9 swc unless you need
any player 10 peer to peer or other feature.

If you are using player 10 swc, make sure your
Project->Properties->Flex Compiler -> Require Flash Player
Version is 10 . 0 .0 and you are using player 10 runtime in
browser. Also , your flex SDK should support player 10.



If you are using player 9 swc, you can keep the Flex Compiler
option as 9.0.124 or something and you can either run it in player
9 or player 10 browser.

That should solve the issue. Let me know if there are issues.



Thanks

Hironmay Basu