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 `{}`.
### Add / Remove Admin
To add or remove a `Domain Admin` you **must** use the `account.id`.
```javascript
domain.addAdmin('new_member@example.com', callback);
domain.addAdmin(account.id, callback);
// {} if Success
domain.removeAdmin('new_member@example.com', callback);
domain.removeAdmin(account.id, callback);
// {} if Success
```
......
......@@ -43027,12 +43027,13 @@ return /******/ (function(modules) { // webpackBootstrap
module.exports = {
"name": "zimbra-admin-api-js",
"version": "0.0.28",
"version": "0.0.29",
"private": true,
"main": "lib/zimbra-admin-api.js",
"dependencies": {
"crypto-browserify": "^3.11.0",
"jquery": "^2.2.3",
"js-powerdns": "github:zboxapp/js-powerdns",
"js-zimbra": "github:zboxapp/js-zimbra#super-agent",
"merge": "^1.2.0",
"options-api": "^1.1.0",
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "zimbra-admin-api-js",
"version": "0.0.28",
"version": "0.0.29",
"private": true,
"main": "lib/zimbra-admin-api.js",
"dependencies": {
"crypto-browserify": "^3.11.0",
"jquery": "^2.2.3",
"js-powerdns": "github:zboxapp/js-powerdns",
"js-zimbra": "github:zboxapp/js-zimbra#super-agent",
"merge": "^1.2.0",
"options-api": "^1.1.0",
......
......@@ -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 owner_email = 'domain_admin@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