<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z0000746VdHCAUOkta Classic EngineAnswered2021-08-06T07:07:01.000Z2021-07-15T12:00:27.000Z2021-07-18T12:33:54.000Z

Promod BhaiM.84196 (Customer) asked a question.

How to get the list of all deactivated users in C# .net.

I'm trying to get all the users but in that list deactivated users are not getting. So I tried this filter, even though it is not working for me, Can anyone help me out. Please have a look of my existing code. I tried this in two ways

 

var deactivated_users_list = await client.Users

            .ListUsers(filter: $"status eq \"DEACTIVATED\"")

            .ToArrayAsync();

 

(and)

 

var deactivated_users_list = await client.Users

            .ListUsers(filter: $"status eq \"INACTIVE\"")

            .ToArrayAsync();


This question is closed.
Loading
How to get the list of all deactivated users in C# .net.