We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32f4cc5 commit dce8f01Copy full SHA for dce8f01
src/users.js
@@ -143,6 +143,24 @@ Users.prototype.list = function () {
143
return usersList;
144
};
145
146
+/**
147
+ * Returns an array of all user objects
148
+ * @returns {Array}
149
+ */
150
+Users.prototype.all = function () {
151
+ var self = this,
152
+ users = [],
153
+ i;
154
+
155
+ for (i = 0; i < self.data.length; ++i) {
156
+ if (self.data[i].projectId === self.projectId || self.data[i].customerId === self.projectId) {
157
+ users.push(self.data[i]);
158
+ }
159
160
161
+ return users;
162
+};
163
164
/**
165
* Returns the number of registered identities
166
* @return {number}
0 commit comments