Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User permissions missing some permissions #2156

Closed
allmightyspiff opened this issue Jun 6, 2024 · 0 comments · Fixed by #2157
Closed

User permissions missing some permissions #2156

allmightyspiff opened this issue Jun 6, 2024 · 0 comments · Fixed by #2157
Assignees
Labels

Comments

@allmightyspiff
Copy link
Member

 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

@allmightyspiff allmightyspiff self-assigned this Jun 6, 2024
allmightyspiff added a commit to allmightyspiff/softlayer-python that referenced this issue Jun 6, 2024
…nd be more accurate with new permissions being added softlayer#2156
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant