Rally - Pyral get() on User only returns current user
search cancel

Rally - Pyral get() on User only returns current user

book

Article ID: 144569

calendar_today

Updated On:

Products

Rally On-Premise

Issue/Introduction

When using the get() method on the User endpoint, only the current user is returned even though the user is a subscription administrator

Cause

By default, the API will only return the current user when simply performing a simple GET on the User endpoint.  Since pyral relies on the API it inherits this behavior when performing a get() on Users.

Resolution

There are two solutions available in this situation:
  • Supply a query to your get() method, such as (Disabled = false)
    Example:
users = rally.get('User', fetch='FirstName,LastName,EmailAddress', query='(Disabled = false)')

  • Use the getAllUsers() "convenience" method built into pyral
Example:
users = rally.getAllUsers()