To display user directory please use following shortcode

[user_directory]

 

Parameters:

 

Parameter Type Arguments
number any digit Ex: 10
paged any digit Ex: 3
offset any digit Ex: 5
search String
search_columns String user_login,user_nicename,user_email,user_url,ID
order String DESC, ASC
orderby String  ID, login, nicename, email, url, registered, display_name, post_count
role__in Comma Separated String administrator, editor, author, contributor, subscriber, customer
role Comma Separated String administrator, editor, author, contributor, subscriber, customer
role__not_in Comma Separated String administrator, editor, author, contributor, subscriber, customer
include Comma Separated Number User ids, Ex: 1,2,3
exclude Comma Separated Number User ids, Ex: 1,2,3

 

 

 

You can use WordPress defined parameter for  WP_User_Query  Class

Please see the reference below

https://codex.wordpress.org/Class_Reference/WP_User_Query