Socket
Book a DemoInstallSign in
Socket

zm-ruby-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zm-ruby-client

2.2.7
bundlerRubygems
Version published
Maintainers
1
Created
Source

zm-ruby-client

Library to interface with Zimbra simply.

Author: Maxime Désécot maxime.desecot@gmail.com

Installation

OS: Linux distribution LTS

Language: Ruby2.7+

gem install zm-ruby-client

Examples of uses:

Connection:

config = Zm::Client::ClusterConfig.new('config.json')
admin = Zm::Client::Cluster.new(config)
admin.login

or

config = Zm::Client::ClusterConfig.new do |cc|
  cc.zimbra_admin_host = 'mail.domain.tld'
  cc.zimbra_admin_scheme = 'https'
  cc.zimbra_admin_port = 7071
  cc.zimbra_admin_login = 'admin@domain.tld'
  cc.zimbra_admin_password = 'secret'
end
admin = Zm::Client::Cluster.new(config)
admin.login

List all accounts

filter = '(&(mail=*@domain.tld)(zimbraLastLogonTimestamp<=20190225000000Z))'
accounts = admin.accounts.where(filter).all

Find an account

account = admin.accounts.find_by name: 'maxime@domain.tld'

Create an account

account = Zm::Client::Account.new(admin) do |acc|
  acc.name = 'maxime@domain.tld'
  acc.givenName = 'Maxime'
  acc.sn = 'DÉSÉCOT'
end

account.save

FAQs

Package last updated on 25 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.