File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -108,15 +108,16 @@ def users(self) -> List[AzureUser]:
108
108
role_fields_params = role_fields_params ,
109
109
)
110
110
111
+ final_endpoint = endpoint
111
112
exists_users = True
112
113
users = []
113
114
valid_users = []
114
115
skip_token_attribute = '&$skiptoken='
115
116
116
117
while exists_users :
117
118
response = requests .get (
118
- endpoint , auth = BearerAuth (self .access_token )
119
- )
119
+ final_endpoint , auth = BearerAuth (self .access_token )
120
+ )
120
121
json_response = response .json ()
121
122
assert 200 == response .status_code
122
123
assert 'value' in json_response
@@ -131,8 +132,8 @@ def users(self) -> List[AzureUser]:
131
132
request_token = remaining_users_link .split (
132
133
skip_token_attribute
133
134
)[1 ]
134
- endpoint = endpoint + skip_token_attribute + request_token
135
-
135
+ final_endpoint = endpoint + skip_token_attribute + request_token
136
+
136
137
for user in users :
137
138
user_emails = user ['otherMails' ]
138
139
if (len (user_emails ) != 0 and user_emails [0 ].split ('@' )[1 ] == 'ioet.com' ):
You can’t perform that action at this time.
0 commit comments