Skip to content

Commit b12927c

Browse files
authored
Search users by user ids (#498)
fixes descope/etc#9767
1 parent 851c0ef commit b12927c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.vscode/settings.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,10 @@
44
"flake8.importStrategy": "fromEnvironment",
55
"mypy-type-checker.importStrategy": "fromEnvironment",
66
"isort.importStrategy": "fromEnvironment",
7-
"black-formatter.importStrategy": "fromEnvironment"
7+
"black-formatter.importStrategy": "fromEnvironment",
8+
"workbench.colorCustomizations": {
9+
"activityBar.background": "#4D1C3B",
10+
"titleBar.activeBackground": "#6B2752",
11+
"titleBar.activeForeground": "#FDF8FB"
12+
}
813
}

descope/management/user.py

+5
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ def search_all(
599599
to_created_time: Optional[int] = None,
600600
from_modified_time: Optional[int] = None,
601601
to_modified_time: Optional[int] = None,
602+
user_ids: Optional[List[str]] = None,
602603
) -> dict:
603604
"""
604605
Search all users.
@@ -622,6 +623,7 @@ def search_all(
622623
to_created_time (int): Optional int, only include users who were created on or before this time (in Unix epoch milliseconds)
623624
from_modified_time (int): Optional int, only include users whose last modification/update occurred on or after this time (in Unix epoch milliseconds)
624625
to_modified_time (int): Optional int, only include users whose last modification/update occurred on or before this time (in Unix epoch milliseconds)
626+
user_ids (List[str]): Optional list of user IDs to filter by
625627
626628
Return value (dict):
627629
Return dict in the format
@@ -669,6 +671,9 @@ def search_all(
669671
if login_ids is not None:
670672
body["loginIds"] = login_ids
671673

674+
if user_ids is not None:
675+
body["userIds"] = user_ids
676+
672677
if text is not None:
673678
body["text"] = text
674679

0 commit comments

Comments
 (0)