I can use your sample code to get the list of users with the information you desired with administrator role, but if your login user is a interactor role, it doesn't have enough privilege to access the user information.
Hope this helps
1 of 1 people found this helpful
Hi Jesse, the TSC documentation says that users.get() calls the Get Users On Site REST API. If you look at that API, you'll see that it returns limited user information -- in particular, information relevant to the user on the site.
Thanks, Jeff. This makes sense, but I'm confused by the documentation of the library itself which states fullname and email are properties of the UserItem class... I'm able to reference them without it throwing an unbound error, but they're just empty?
You're talking about this response here, right?
<tsResponse> <user id="user-id" name="user-name" siteRole="site-role" lastLogin="last-login-date" externalAuthUserId="authentication-id-from-external-provider" fullName="user-full-name" authSetting="auth-setting" /> <domain name="user-domain" /> </tsResponse>
What am I missing? Why is Zhouyi Zhang reporting success related to server roles when my user is most-certainly a Server Administrator? How do I pull the rest of the user information?
Hi Jesse, if you look at the UserItem class, you'll see that it's used wherever there's a need to work with user information. It's an all-in-one class and is not specific to any API. If you look at the users.update method, you'll see that it uses the email field (for setting the email information, not retrieving it).
TSC is a wrapper library meant to provide a simpler way of working with the REST API. However, if you really want to understand the APIs, the REST API documentation is the best place to look. That's why the TSC documentation has links directly to each REST API method.
I don't see a method for pulling the rest of the user information; perhaps I missed it, so take a look yourself in the REST API documentation.