Skip to content

Isssue when trying to sort getUsers() #17

@lewisstancer

Description

@lewisstancer

From the OneLogin API Reference:
OneLogin API - Users

Return users sorted by firstname. Use + to sort in ascending order or - to sort in descending order:
https://api.us.onelogin.com/api/2/users?sort=+firstname

Attempted code

$queryParameters = [
	"sort" => "+firstname"
];
$userList = $oneLoginApi->getUsers($queryParameters);

Returns:
Empty array (blank)

For now the workaround is to just leave sort blank but I assume I am either doing this wrong or it is something to do with character encoding but as it isn't documented I can't be sure

$queryParameters = [
	"sort" => ""
];
$userList = $oneLoginApi->getUsers($queryParameters);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions