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]:
108108 role_fields_params = role_fields_params ,
109109 )
110110
111+ final_endpoint = endpoint
111112 exists_users = True
112113 users = []
113114 valid_users = []
114115 skip_token_attribute = '&$skiptoken='
115116
116117 while exists_users :
117118 response = requests .get (
118- endpoint , auth = BearerAuth (self .access_token )
119- )
119+ final_endpoint , auth = BearerAuth (self .access_token )
120+ )
120121 json_response = response .json ()
121122 assert 200 == response .status_code
122123 assert 'value' in json_response
@@ -131,8 +132,8 @@ def users(self) -> List[AzureUser]:
131132 request_token = remaining_users_link .split (
132133 skip_token_attribute
133134 )[1 ]
134- endpoint = endpoint + skip_token_attribute + request_token
135-
135+ final_endpoint = endpoint + skip_token_attribute + request_token
136+
136137 for user in users :
137138 user_emails = user ['otherMails' ]
138139 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