Skip to content
English
  • There are no suggestions because the search field is empty.

Useful APIs for Multi-tenant Platform

Original Question or Issue:

Some useful APIs to automate a new tenant deployment


Environment:

  • Product - FileCloud Server
  • Version - 23.241
  • Platform - Any

Steps to Reproduce:

 


Error or Log Message:

 


Defect or Enhancement Number:

 


Cause:

 


Resolution or Workaround:

  • Add a new tenant with the same setting as the default site:

Get http://192.168.56.131/admin/superadminaddsite?name=tenant2&url=tenant2.local.com&duplicatesitename=default

  • Login to the newly deployed tenant admin portal:

Get http://tenant2.local.com/admin/adminlogin/?adminuser=admin&adminpassword=password

  • Create a new user:

Post http://tenant2.local.com/admin/adduser?username=mike&displayname=mike&email=mike@filecloud.com&password=password&authtype=0&status=1

  • Create a new role:

Post http://tenant2.local.com/admin/addrole?rolename=mynewrole&enabled=1

  • Update role permissions (role ID is returned by API call in the previous step):

Post http://tenant2.local.com/admin/updaterole?id=679a49ed80fee0a1a7017d81&permissions=groups.read,groups.create,groups.update,groups.delete

  • Assign the new user mike to role mynewrole:

Post http://tenant2.local.com/admin/addroleuser?id=679a49ed80fee0a1a7017d81&username=mike


Notes:

Please adapt IP, URL, username, password and permissions based on your environment.