Web Services Developer's Guide → Web Services API Reference → SBM Administrative Web Services → Responses → Privilege
The Privilege type holds the name and other information about a privilege in SBM. The Privilege type parameters are listed below.
Name | Type | Description |
---|---|---|
name | string | The name of the privilege. |
objectUUID | string | The UUID of the object to which the privilege applies. May be set to null if not scoped to an object. May return the ID and not UUID in some cases. |
type | string | The type of privilege. See below. |
The Privilege type completely describes an available privilege in SBM. Use GetUserPrivileges to retrieve a list of privileges available for a specified user.
The available privilege types for a normal user are:
TS_PRIVTYPE_USERSYS |
TS_PRIVTYPE_USERPRJ |
TS_PRIVTYPE_USERWKF |
TS_PRIVTYPE_USERFLD |
TS_PRIVTYPE_USERTBL |
The available privilege types for an administrator are:
TS_PRIVTYPE_ADMSYS |
TS_PRIVTYPE_ADMPRJ |
TS_PRIVTYPE_ADMWKF |
TS_PRIVTYPE_ADMFLD_PRJ |
TS_PRIVTYPE_ADMFLD_WKF |
TS_PRIVTYPE_ADMCON |
TS_FLDPRIVTYPE_ADMFLD |
TS_FLDPRIVTYPE_ADMGRP |
TS_FLDPRIVTYPE_ADMTBL |
The following XML snippet shows the Privilege type in the return element of the GetUserPrivileges response.
<ae:GetUserPrivilegesResponse> <ae:return> <ae:name>TS_ADMPRJPRIV_ADDPROJECT</ae:name> <ae:objectUUID>ROOTPROJECT</ae:objectUUID> <ae:type>TS_PRIVTYPE_ADMPRJ</ae:type> </ae:return> <ae:return> <ae:name>TS_ADMPRJPRIV_EDITPROJECT</ae:name> <ae:objectUUID>ROOTPROJECT</ae:objectUUID> <ae:type>TS_PRIVTYPE_ADMPRJ</ae:type> </ae:return> <ae:return> <ae:name>TS_ADMPRJPRIV_DELETEPROJECT</ae:name> <ae:objectUUID>ROOTPROJECT</ae:objectUUID> <ae:type>TS_PRIVTYPE_ADMPRJ</ae:type> </ae:return> <ae:return> <ae:name>TS_ADMPRJPRIV_ASSIGNPROJECTPRIVS</ae:name> <ae:objectUUID>ROOTPROJECT</ae:objectUUID> <ae:type>TS_PRIVTYPE_ADMPRJ</ae:type> </ae:return> <ae:return> <ae:name>TS_ADMPRJPRIV_ADDPROJECT</ae:name> <ae:objectUUID>1bb8e27a-3156-49e6-8257-f7379e6aa498</ae:objectUUID> <ae:type>TS_PRIVTYPE_ADMPRJ</ae:type> </ae:return> </ae:GetUserPrivilegesResponse>
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.