retrieving a data of a specific user

Sonia Samimi asked on July 8, 2020 08:23

hello dear friends. I have some custom fields in User Table and I wanna get a specific user through filtering via C#. how do I do that?!!

Correct Answer

Dmitry Bastron answered on July 8, 2020 10:33

Hi Sonia,

I'm assuming you have added custom fields for users following this manual from the documentation. In this case you should be able to query or filter by these fields like this using Query API:

var users = UserInfoProvider.GetUsers()
    .WhereEquals("CustomField1", "something")
    .Or()
    .WhereStartsWith("CustomField2", "something else")
    .ToList();
1 votesVote for this answer Unmark Correct answer

Recent Answers


Sonia Samimi answered on July 11, 2020 08:42

Thank you Dmitry .

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.