Watch the demo (don't forget to turn on the caption) on youTube.
Download the file (register_directory_entry.js) and reflect the account information.
/*
* Replace the "***" with a valid App account name that have permission
* to write information to the installed Box.
*/
var appAccountName = '***';
/*
* Replace the "***" with a valid App account password that have permission
* to write information to the installed Box.
*/
var appAccountPassword = '***';
Send a RESTful API to register an entry to the directory (OData). You just need to specify an existing Cell URL and the engine service will look up the Cell's profile and register the following properties to the directory.
By default, anyone can register to and read from the directory. However, you can modify the ACL of the engine service to limit user's access.