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:
- Login to the newly deployed tenant admin portal:
Get http://tenant2.local.com/admin/adminlogin/?adminuser=admin&adminpassword=password
- Create a new user:
- 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):
- 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.