Forum Discussion

tjfields's avatar
tjfields
Contributor
13 years ago

No email addresses in results from /restapi/vc/users/visited endpoint

When I get the results from this endpoint, there are sometimes no email addresses for the returned users.  On certain communities it does come back, but for others it does not.

 

Are there permission controls on the results?  To clarify, if the user credentials being used for the API call don't have permission to see this data, could this be causing the results to come back without email address?

5 Replies

  • DougS's avatar
    DougS
    Khoros Oracle
    13 years ago

    Yes -- it should only return email addresses when the user you are making the call as has permission to see them.

  • DougS's avatar
    DougS
    Khoros Oracle
    13 years ago

    You can see the user's email address if you have permission to manage users, or if a user allows just friends and you are a friend, or if the user allows anyone see their email address (through the "my settings" > "prefrerences" > "privacy").

  • tjfields's avatar
    tjfields
    Contributor
    13 years ago

    Thank you for the response, this clarifies it.  When you mention a user needs the ability to manage users, where is this set?

  • DougS's avatar
    DougS
    Khoros Oracle
    13 years ago

    This is set via the Users > Permissions tab in the admin.  The permission is called "Manage Users" and it's under the "User Management" section in the permissions list.  The best practice is to create a Role and give that role the permissions you need, then add users who should be able to take the action to that role.