[ https://issues.apache.org/jira/browse/TC-217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15954994#comment-15954994 ]
Nir Sopher edited comment on TC-217 at 4/5/17 8:59 AM: ------------------------------------------------------- Further thinking of the issue I would like to revise the earlier suggestion I placed. In this JIRA you first request to "Allow users to CRUD sub tenants below their tenant". I believe what you practically need is a way to get the list of tenants the user may access. The fact that these tenants are descendants of the user's tenant is just a detail. This may change in the future. So I would like to suggest the following API: 1. api/1.2/users/:id/tenants - get all the tenants the user with the given id may access 2. api/1.2/user/current/tenants - get all the tenants the current user may access Additionally you request to have the list of tenants "below any sub-tenant level they choose". For this purpose I suggest the following API: 3. api/1.2/tenants/:id/subtenants - get the list of tenants descendant to the tenant with the id "id". -- The provided list is subject to the current allowed view -- "current" is not supported as an "id" Ryan/Ashish, please let me know if this API meets your needs. Thanks, Nir was (Author: nirsopher): Further thinking of the issue I would like to revise the earlier suggestion I placed. In this JIRA you first request to "Allow users to CRUD sub tenants below their tenant". I believe what you practically need is a way to get the list of tenants the user may access. The fact that these tenants are descendants of the user's tenant is just a detail. This may change in the future. So I would like to suggest the following API: 1. api/1.2/user/:id/tenants - get all the tenants the user with the given id may access 2. api/1.2/user/current/tenants - get all the tenants the current user may access Additionally you request to have the list of tenants "below any sub-tenant level they choose". For this purpose I suggest the following API: 3. api/1.2/tenants/:id/subtenants - get the list of tenants descendant to the tenant with the id "id". -- The provided list is subject to the current allowed view -- "current" is not supported as an "id" Ryan/Ashish, please let me know if this API meets your needs. Thanks, Nir > Self Service - CRUD Sub Tenant > ------------------------------ > > Key: TC-217 > URL: https://issues.apache.org/jira/browse/TC-217 > Project: Traffic Control > Issue Type: New Feature > Components: Traffic Ops, Traffic Ops API > Reporter: Ashish Timilsina > > Allow users to CRUD sub tenants below their tenant level or below any > sub-tenant level they choose. Default would be directly below the current > tenant value. -- This message was sent by Atlassian JIRA (v6.3.15#6346)