Skip to content

Commit c3f418f

Browse files
committed
Add activity parameter to users() function for filtering
1 parent 1888240 commit c3f418f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/provisioning/account.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ function user(user_id, options = {}, callback) {
126126
* - lastLogin {boolean} - Returns users based on their last login within a specified date range. true for users who logged in, false for users who haven't logged in, undefined for all users.
127127
* - fromDate {Date|string} - Last login start date.
128128
* - toDate {Date|string} - Last login end date.
129+
* - activity {boolean} - Additional parameter for activity-based filtering.
129130
* See {@link https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters|Configuration parameters} in the SDK documentation.
130131
* @param [callback] {function}
131132
*/
@@ -144,9 +145,10 @@ function users(pending, user_ids, prefix, sub_account_id, options = {}, callback
144145
sub_account_id,
145146
last_login: options.lastLogin,
146147
from: options.fromDate,
147-
to: options.toDate
148+
to: options.toDate,
149+
activity: options.activity
148150
};
149-
return call_account_api('GET', uri, pickOnlyExistingValues(params, "ids", "pending", "prefix", "sub_account_id", "last_login", "from", "to"), callback, options);
151+
return call_account_api('GET', uri, pickOnlyExistingValues(params, "ids", "pending", "prefix", "sub_account_id", "last_login", "from", "to", "activity"), callback, options);
150152
}
151153

152154
/**

0 commit comments

Comments
 (0)