Commit 436dbd45 authored by Patricio Bruna's avatar Patricio Bruna

Fixed addAdmin Readme

parent 662e9e7f
...@@ -421,11 +421,13 @@ If the `Domain` is empty, no 'Accounts', the result will be a `{}`. ...@@ -421,11 +421,13 @@ If the `Domain` is empty, no 'Accounts', the result will be a `{}`.
### Add / Remove Admin ### Add / Remove Admin
To add or remove a `Domain Admin` you **must** use the `account.id`.
```javascript ```javascript
domain.addAdmin('new_member@example.com', callback); domain.addAdmin(account.id, callback);
// {} if Success // {} if Success
domain.removeAdmin('new_member@example.com', callback); domain.removeAdmin(account.id, callback);
// {} if Success // {} if Success
``` ```
......
...@@ -43027,12 +43027,13 @@ return /******/ (function(modules) { // webpackBootstrap ...@@ -43027,12 +43027,13 @@ return /******/ (function(modules) { // webpackBootstrap
module.exports = { module.exports = {
"name": "zimbra-admin-api-js", "name": "zimbra-admin-api-js",
"version": "0.0.28", "version": "0.0.29",
"private": true, "private": true,
"main": "lib/zimbra-admin-api.js", "main": "lib/zimbra-admin-api.js",
"dependencies": { "dependencies": {
"crypto-browserify": "^3.11.0", "crypto-browserify": "^3.11.0",
"jquery": "^2.2.3", "jquery": "^2.2.3",
"js-powerdns": "github:zboxapp/js-powerdns",
"js-zimbra": "github:zboxapp/js-zimbra#super-agent", "js-zimbra": "github:zboxapp/js-zimbra#super-agent",
"merge": "^1.2.0", "merge": "^1.2.0",
"options-api": "^1.1.0", "options-api": "^1.1.0",
This diff is collapsed.
{ {
"name": "zimbra-admin-api-js", "name": "zimbra-admin-api-js",
"version": "0.0.28", "version": "0.0.29",
"private": true, "private": true,
"main": "lib/zimbra-admin-api.js", "main": "lib/zimbra-admin-api.js",
"dependencies": { "dependencies": {
"crypto-browserify": "^3.11.0", "crypto-browserify": "^3.11.0",
"jquery": "^2.2.3", "jquery": "^2.2.3",
"js-powerdns": "github:zboxapp/js-powerdns",
"js-zimbra": "github:zboxapp/js-zimbra#super-agent", "js-zimbra": "github:zboxapp/js-zimbra#super-agent",
"merge": "^1.2.0", "merge": "^1.2.0",
"options-api": "^1.1.0", "options-api": "^1.1.0",
......
...@@ -624,7 +624,7 @@ ...@@ -624,7 +624,7 @@
}); });
}); });
it('addOwner should add Owner', function(done){ it('addOwner to DL should add Owner', function(done){
let api = new ZimbraAdminApi(auth_data); let api = new ZimbraAdminApi(auth_data);
let owner_email = 'domain_admin@customer.dev'; let owner_email = 'domain_admin@customer.dev';
let resource_name = Date.now() + '@customer.dev'; let resource_name = Date.now() + '@customer.dev';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment