Hi Sheri.
The short answer is that the minimal set of required fields are: "
username" and "
emailaddress". There are additional required fields but they have default value so they're not part of the minimal set.
The easiest way to find out the required fields is for a sub-admin to get into the setup area, then Subscription settings, then click Fields, select 'User' from the drop-down. Then, you'll get the list of all User fields and you can find all required fields. The only required fields that have no default values are 'username' and 'emailaddress' so you must set them. The other required fields, if not explicitly set, will set to their default values.
With regard to your question of the API:
It's the same set of fields, there aren't additional required fields by the API. If you wanted to find it out on your own what you can do is check out the
WSAPI documentation page. You find the 'User' object on the bottom-left under the Object Model section. You can then scroll down the list of Child Elements and go over all fields. You can look for "Required = true" and this way find the required fields. I've included an attachment screenshot of the EmailAddress field definition where you can see it.
Now, there isn't a way to know if there is a default value or not. So in order to be certain what the minimal set of required fields is, and if you wanted to try it from the API, then you can use a tool such as Postman and try a few JSON datasets, where you can find out that omitting some of these required fields (such as Language or Locale) is okay, and you can see they're still getting set. Here's an example of a JSON that has all required field beyond the minimal set:
{
"User":
{
"username":"MyTestExampleUser2@rallydev.com",
"emailAddress": "TestExampleUser2@myorg.com",
"Language": "en-US",
"Locale": "en-US",
"SubscriptionID": "209"
}
}
Let us know if helped.
Sagi
Original Message:
Sent: 09-24-2019 06:04 PM
From: Sheri Moore
Subject: User Fields in Rally via API
We currently have an integration with Okta which creates and updates users using the API Key. I would like to know if there is a list of fields that are required to be set in order for the user to be created successfully. Is the list of field different than when they are created through the UI? Thanks in advance for any insight!
------------------------------
SHERI L. MOORE | SENIOR PRODUCT MANAGER
ENTERPRISE PROGRAM MANAGEMENT OFFICE (ePMO)
AMERICAN EXPRESS
TRCN | 19640 N. 31st Avenue, MC: 18-02-01 | Phoenix, AZ 85027
O: 602766-1656 | E: Sheri.L.Moore@aexp.com
------------------------------