softlayer / softlayer-python

A set of Python libraries that assist in calling the SoftLayer API.
http://softlayer.github.io/softlayer-python/
MIT License
152 stars 194 forks source link

User permissions missing some permissions #2156

Closed allmightyspiff closed 5 months ago

allmightyspiff commented 5 months ago
 slcli --format=json call-api SoftLayer_User_Permission_Action getAllObjects --mask="mask[id,keyName]" | grep TICKET
    "keyName": "TICKET_VIEW"
    "keyName": "TICKET_EDIT"
    "keyName": "TICKET_ADD"
    "keyName": "TICKET_SEARCH"
    "keyName": "TICKET_MANAGE"
    "keyName": "TICKET_VIEW_BY_HARDWARE"
    "keyName": "TICKET_VIEW_BY_VIRTUAL_GUEST"
    "keyName": "TICKET_VIEW_ALL"

BUT in the slcli

slcli -v user permissions 8344458 | grep TICKET
Calling: SoftLayer_User_Customer::getObject(id=8344458, mask='mask[id, permissions, isMasterUserFlag, roles]', filter='None', args=(), limit=None, offset=None)
Calling: SoftLayer_User_Permission_Action::getAllObjects(id=None, mask='', filter='None', args=(), limit=None, offset=None)
 Add / Edit Tickets                                  TICKET_MANAGE                                  False
 View Tickets by Hardware Access                     TICKET_VIEW_BY_HARDWARE                        False
 View Tickets by Computing Instance Access           TICKET_VIEW_BY_VIRTUAL_GUEST                   False

Might also need to refactor to show permissions like from SoftLayer_User_Permission_Department::getAllObjects