Community
 
 
 

CloudPortal Business Manager 2.x

324 followers
 
Avatar
Administrator

Determine Tenant UUID using BSS API s

 

Determine Tenant UUID using BSS API

How do I use the BSS API to determine a tenant UUID give the name of a user for the tenant?

Donal Lafferty CITRIX EMPLOYEES 15 July 2014 - 09:28 AM
3 comments
0

Please sign in to leave a comment.

 
 

Previous 3 comments

Avatar
Administrator
 

Determine Tenant UUID using BSS API

Hi Donal,

 

Can you let us know who is the intended actor for the API? Is it for tenant admin , for a normal user or for service provider user?

 

Tenant Admin and normal user can call "/account" to get their own account details. And service provider user does not have any direct way to get tenant info given a username. Workaround is to get all tenants and then search for the user under every tenant.

 

Can you let us know the actual use case?

 

Thanks,

Manish

Manish Agarwal CITRIX EMPLOYEES 15 July 2014 - 20:51 PM
Comment actions Permalink
Avatar
Administrator
Avatar

The actor is a 'normal user', and I'm trying to understand to use the BSS API.  Often resources can be accessed using a 'UUID'.  E.g.

 

/accounts/{uuid}/subscriptions

 

(see http://support.citrix.com/proddocs/topic/cpbm-22-map/cpbm-subscription-ref.html#reference_sub__section_listviaroot )

 

I'm presume that 'uuid' is the tenant's uuid.  Is that correct?


Donal Lafferty CITRIX EMPLOYEES 16 July 2014 - 10:03 AM
Comment actions Permalink
Avatar
Administrator
Avatar

Hi Donal,

 

Thats correct. In the URL "/accounts/{uuid}/subscriptions" , UUID is for the account.

But this URL is accessible only to admin with role "ROLE_ACCOUNT_MGMT". And a "normal user" cannot access it.

If a normal user want to list his subscriptions then he can call "/subscriptions". (I understand that you quoted it as an example but I just wanted to clarify so it does not cause any confusion)

 

Please let me know if you need more information.

 

Thanks,

Manish


Manish Agarwal CITRIX EMPLOYEES 16 July 2014 - 19:23 PM
Comment actions Permalink

Top Contributors