ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

When requesting a user object via the API, not all attributes are shown

book

Article ID: 238637

calendar_today

Updated On:

Products

CA Agile Central SaaS (Rally) CA Agile Central On Premise (Rally) Rally Perpetual Hosted

Issue/Introduction

When requesting a user object via WSAPI, not all of the user object attributes are visible.

For example, the following request is missing numerous fields such as DefaultProject, EmailNotificationEnabled, LastActiveDate and many more:

  • User:
    {
         _rallyAPIMajor: "2",
         _rallyAPIMinor: "0",
         _ref: "https://rally1.rallydev.com/slm/webservice/v2.0/user/301551329204",
         _refObjectUUID: "be2943ba-7476-44d9-baea-9b8e1151b708",
         _objectVersion: "25",
         _refObjectName: "AprilRoberts",
         ObjectID: 301551329204,
         CostCenter: "None",
         Department: "None",
         Disabled: false,
         DisplayName: "AprilRoberts",
         EmailAddress: "[email protected]",
         FirstName: null,
         LastName: null,
         MiddleName: null,
         OfficeLocation: "None",
         Phone: null,
         Role: "None",
         UserName: "[email protected]",
         Errors: [ ],
         Warnings: [ ]
    }

 

Cause

For security reasons, this can happen when the user making the request does not have sufficient access levels to view these privileged fields.

Resolution

Make the request using a user ID with higher security permissions.  At a minimum, Workspace Administrator permissions are needed to view these additional fields.