Auto mount addressbook for all existing users and new users
Page 1 of 2 12 LastLast
Results 1 to 10 of 11
Like Tree2Likes

Thread: Auto mount addressbook for all existing users and new users

  1. #1
    Member ZeXtras Reseller
    Participant

    Join Date
    Nov 2012
    Posts
    47

    Auto mount addressbook for all existing users and new users

    Hi,

    I see that using zmmailbox, one can auto mount an addressbook for all existing users and also new users which will be created at a later date. However trying all combinations and searching the zimbra forums, i couldn't get it to work. Any help on this will be appreciated.

  2. #2
    Wise Guy Participant
    Join Date
    Apr 2011
    Posts
    34
    Hello anandi.

    AFAIK there is no automount available for any Zimbra folder, contacts included. You can share a folder controlling with varying degrees of granularity who is allowed to access it. You can share something with an account, a group, a cos, a domain, with all authenticated users on the server, or you can make it public.
    Version 7 of ZCS allows to advertise the fact that folders are shared to the users, however that has been removed since version 8.0 .
    From the help of zmmailbox:
    Code:
    modifyFolderGrant(mfg)       {folder-path} {account {name}|group {name}|cos {name}|domain {name}|all|public|guest {email} [{password}]|key {email} [{accesskey}] {permissions|none}}
    For instance, should you wish to give complete access to the default Contacts folder to any authenticated user, you might input, operating as the zimbra user:
    Code:
    zmmailbox -z -m account@domain.com mfg /Contacts all rwxid
    This topic on the Zimbra forums provides additional information, as does the /opt/zimbra/docs/soap.txt documentation file on any ZCS installation.

    Regards,
    Trantor
    anandi likes this.
    ZeXtras Website # ZeXtras Wiki # ZeXtras Store

    ZeXtras System Administrator and Installer Guru

  3. #3
    Member ZeXtras Reseller
    Participant

    Join Date
    Nov 2012
    Posts
    47
    Hi Trantor,

    Thanks for the reply. Let me try this out and i might trouble you more

    Quote Originally Posted by Trantor View Post
    Hello anandi.

    AFAIK there is no automount available for any Zimbra folder, contacts included. You can share a folder controlling with varying degrees of granularity who is allowed to access it. You can share something with an account, a group, a cos, a domain, with all authenticated users on the server, or you can make it public.
    Version 7 of ZCS allows to advertise the fact that folders are shared to the users, however that has been removed since version 8.0 .
    From the help of zmmailbox:
    Code:
    modifyFolderGrant(mfg)       {folder-path} {account {name}|group {name}|cos {name}|domain {name}|all|public|guest {email} [{password}]|key {email} [{accesskey}] {permissions|none}}
    For instance, should you wish to give complete access to the default Contacts folder to any authenticated user, you might input, operating as the zimbra user:
    Code:
    zmmailbox -z -m account@domain.com mfg /Contacts all rwxid
    This topic on the Zimbra forums provides additional information, as does the /opt/zimbra/docs/soap.txt documentation file on any ZCS installation.

    Regards,
    Trantor

  4. #4
    Member ZeXtras Reseller
    Participant

    Join Date
    Nov 2012
    Posts
    47
    Hi,

    As per Zmmailbox - Zimbra :: Wiki, it shows that a folder can be mounted for a user, using createMountPoint command. Any ideas on how that is done for contacts ?

    Thanks

  5. #5
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,342
    Quote Originally Posted by anandi View Post
    Hi,

    As per Zmmailbox - Zimbra :: Wiki, it shows that a folder can be mounted for a user, using createMountPoint command. Any ideas on how that is done for contacts ?

    Thanks
    Hello Anandi!

    Addres Books are folders, just like email folders, calendars and briefcases, so the "createMountpoint" command works on that one too...

    Have a nice day,
    Cine
    the ZeXtras Team
    IT Support Team Contact Form
    Sales Team Contact Form

    ZeXtras Website
    # ZeXtras Wiki # ZeXtras Store

    Have ZeXtras Suite or ZeXtras Migration Tool been helpful to you?
    Share your experience in the Zimbra Gallery!

    ZeXtras Suite on the Zimbra Gallery
    ZeXtras Migration Tool on the Zimbra Gallery

  6. #6
    Member ZeXtras Reseller
    Participant

    Join Date
    Nov 2012
    Posts
    47
    Hi Cine,

    I tried to use the examples on the wiki, but wasn't successful. Do you have any working example ?

  7. #7
    Member ZeXtras Reseller
    Participant

    Join Date
    Nov 2012
    Posts
    47
    Tried again, and got it working.

    Quote from wiki:

    zmmailbox -z -m share@domain.com mfg / account user@domain.com rwixd
    zmmailbox -z -m user@domain.com cm /shared share@domain.com /
    Modified version, which worked for me:

    zmmailbox -z -m shared-address-book@domain.com mfg "/Contacts/Users Internal List" account user@domain.com r
    zmmailbox -z -m user@domain.com cm "/Contacts/Users Internal List" shared-address-book@domain.com "/Contacts/Users Internal List"
    The first enabled the read only sharing, and the second mounts it automatically for the user.

    Hope this helps someone else

  8. #8
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,342
    Quote Originally Posted by anandi View Post
    Tried again, and got it working.
    [...]
    Hope this helps someone else
    Hello Anandi!

    Just to clarify: both the "mfg" and "cm" commands require 3 parameters:

    zmmailbox -z -m share@domain.com mfg {folder-to-share} {target} {permissions}
    zmmailbox -z -m user@domain.com cm {mountpoint-name} {owner} {original-name}

    In the first command you quoted the "target" parameter was "/" thus sharing the whole content of a mailbox, while in the second the target was a single folder.

    Have a nice day,
    Cine
    the ZeXtras Team

    mfd
    anandi likes this.
    IT Support Team Contact Form
    Sales Team Contact Form

    ZeXtras Website
    # ZeXtras Wiki # ZeXtras Store

    Have ZeXtras Suite or ZeXtras Migration Tool been helpful to you?
    Share your experience in the Zimbra Gallery!

    ZeXtras Suite on the Zimbra Gallery
    ZeXtras Migration Tool on the Zimbra Gallery

  9. #9
    Junior Member
    Join Date
    Sep 2013
    Posts
    2
    Hi all. Do you see a chance to solve https://bugzilla.zimbra.com/show_bug.cgi?id=77872 by mounting one addressbook for multiple users?

  10. #10
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,342
    Quote Originally Posted by drueppela View Post
    Hi all. Do you see a chance to solve https://bugzilla.zimbra.com/show_bug.cgi?id=77872 by mounting one addressbook for multiple users?
    Hello drueppela,
    welcome to the forums!

    As written in the bug report you linked:
    I know that it is possible to mutual share addressbooks but this is
    not what i need.
    "Mounting" a folder is the step needeed in order to make a shared folder visible to a user, so it's still part of the sharing process.

    The /Contacts folder is the default Address Book for a Zimbra user, and this cannot currently be changed.


    Have a nice day,
    Cine
    the ZeXtras Team
    IT Support Team Contact Form
    Sales Team Contact Form

    ZeXtras Website
    # ZeXtras Wiki # ZeXtras Store

    Have ZeXtras Suite or ZeXtras Migration Tool been helpful to you?
    Share your experience in the Zimbra Gallery!

    ZeXtras Suite on the Zimbra Gallery
    ZeXtras Migration Tool on the Zimbra Gallery

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •