Open topic with navigation

TIBCO® Enterprise Administrator 2.4.2

# teaAuthService

This is a service available under tea.services. TIBCO Enterprise Administrator provides teaAuthService, which is an Angular service that can retrieve a list of privileges associated with a specific user.

teaAuthService provides authorization services. Currently, the only public API is thelistPrivileges method.

Dependencies:

1. $q
2. $http

## Methods

The only method currently available in this service is the listPrivileges method.

listPrivileges
Returns the list of privileges associated with the current user.

Parameters

None.

Returns

{Promise} – Returns a `promise` that is resolved with the response object of the listPrivileges operation. The response object is a list. Each entry in the list has the following properties:

Property | Type | Description
--- | --- | ---
product | String | The name of the product that defined this permission.
objectType | String | The object type
permissions | Object | A Map object with the name of the property as the key. The value object has the following properties: productName: String. The name of the product that defined this permission name: String. The name of the permission desc: String. The description of the permission

## Usage

    myModule.controller('MyController', function ($scope, teaAuthService) {
         teaAuthService.listPrivileges().then(function(data) {
           // this callback will be called asynchronously
           // when the response is available.

          }, function(error) {
          // called asynchronously if an error occurs.
          });
    });

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO® Enterprise Administrator

Copyright © 1996-2025. Cloud Software Group, Inc. All Rights Reserved.