cancel
Showing results for 
Search instead for 
Did you mean: 

Site has no managers ugh!!!

jriker1
Champ in-the-making
Champ in-the-making
Had a site that wasn't using synching with AD originally and now am.  As part of the process it blew away all users not in a particular group and that included someone who was the only manager of a site we need.  Is there a way to manually add someone as a site admin?  I am a default Alfresco adminstrator but I can't add users or modify the site configuration regardless.

Thanks for any input.

JR
12 REPLIES 12

jriker1
Champ in-the-making
Champ in-the-making
So should I assume there is no answer to this?  From a basic rule, user creates a site, site is heavily used, there is only one manager, manager leaves and removed from Active Directory so system removes him with Sync, no managers for site anymore.  Would have thought admins could do anything but guess now as the options to change a site layout or manage users is not there.

JR

norgan
Champ in-the-making
Champ in-the-making
Hi, the admin has the rights to add others

jriker1
Champ in-the-making
Champ in-the-making
Hi, the admin has the rights to add others

Thanks for the reply however do not think that's true.  I am looking at the code and it explicitely states SiteManagers:

   <#if userIsSiteManager>
      <#assign linkClass><#if "invite" == activePage>class="active-page"</#if></#assign>
      <span class="yui-button yui-link-button">
         <span class="first-child">
            <a href="${url.context}/page/site/${page.url.templateArgs.site!}/invite" ${linkClass}>${msg("link.invite")}</a>
         </span>
      </span>
   </#if>

will see this invite link and when I'm logged in as an admin I can not see this link on sites I do not manage directly.  Unless something is broken.

JR

norgan
Champ in-the-making
Champ in-the-making
Hmm …. might be that you are right. I would have taken a bet on it 😞

ivan_plestina
Champ in-the-making
Champ in-the-making
Try running the following javascript:
var site = siteService.getSite("sitename");
site.setMembership("username", "Manager");

jriker1
Champ in-the-making
Champ in-the-making
Try running the following javascript:
var site = siteService.getSite("sitename");
site.setMembership("username", "Manager");

Thanks Ivan.  Looks promising.  I assume I can't execute this from the share site JS directly.  Do I need to put this in a particular project/js file?

Thanks.

JR

ivan_plestina
Champ in-the-making
Champ in-the-making
Put those 2 lines into Data dictionary/Scripts/some_name.js and then open document details and click Run action->Execute a script->Choose the script you have just created. All should be done from Alfresco Explorer.

jriker1
Champ in-the-making
Champ in-the-making
Thanks for your continued help Ivan.  I did as you suggest replacing the username with mine and the room with the room name as it's referenced in Explorer.  Got the following:

Failed to run Actions due to error: 08220019 Failed to execute script 'workspace://SpacesStore/260a19ef-5d08-41fe-9172-534a515cdffb': 08220018 An authority was not found for GROUP_site_itonly_Manager

I know it's finding the group as if I put in a bogus one it referrences a null object which it isn't doing here.

Any thoughts?

Thanks.

JR

Edit:  I figured it out.  Should have been "SiteManager" instead of "Manager".  Thanks a bunch Ivan.  You completely rock!!!!!  Looks like the system has some work still to be done with synching as I know the system itself will not allow you to remove a manager if they are the only one but synching will.  Thanks again.

ivan_plestina
Champ in-the-making
Champ in-the-making
Edit:  I figured it out.  Should have been "SiteManager" instead of "Manager".  Thanks a bunch Ivan.  You completely rock!!!!!  Looks like the system has some work still to be done with synching as I know the system itself will not allow you to remove a manager if they are the only one but synching will.  Thanks again.
Actually, you solved my problem too with SiteManager. I have an Alfresco that was upgraded all the way from v2.1 and probably Manager and SiteManager got mixed up in the process. Using Manager worked for me on couple of sites but I got the same error as you on the others.