|  | @@ -137,10 +137,6 @@ class UserRestController(TIMRestController):
 | 
	
		
			
			| 137 | 137 |      password = UserPasswordRestController()
 | 
	
		
			
			| 138 | 138 |      workspaces = UserWorkspaceRestController()
 | 
	
		
			
			| 139 | 139 |  
 | 
	
		
			
			| 140 |  | -    def __init__(self, *args, **kwargs):
 | 
	
		
			
			| 141 |  | -        super().__init__(*args, **kwargs)
 | 
	
		
			
			| 142 |  | -        self._auth_instance = tg.config.get('auth_instance')
 | 
	
		
			
			| 143 |  | -
 | 
	
		
			
			| 144 | 140 |      @classmethod
 | 
	
		
			
			| 145 | 141 |      def current_item_id_key_in_context(cls):
 | 
	
		
			
			| 146 | 142 |          return 'user_id'
 | 
	
	
		
			
			|  | @@ -205,8 +201,9 @@ class UserRestController(TIMRestController):
 | 
	
		
			
			| 205 | 201 |          :rtype fields: dict
 | 
	
		
			
			| 206 | 202 |          :return:
 | 
	
		
			
			| 207 | 203 |          """
 | 
	
		
			
			| 208 |  | -        if not self._auth_instance.is_internal:
 | 
	
		
			
			| 209 |  | -            externalized_fields_names = self._auth_instance.managed_fields
 | 
	
		
			
			|  | 204 | +        auth_instance = tg.config.get('auth_instance')
 | 
	
		
			
			|  | 205 | +        if not auth_instance.is_internal:
 | 
	
		
			
			|  | 206 | +            externalized_fields_names = auth_instance.managed_fields
 | 
	
		
			
			| 210 | 207 |              for externalized_field_name in externalized_fields_names:
 | 
	
		
			
			| 211 | 208 |                  if externalized_field_name in fields:
 | 
	
		
			
			| 212 | 209 |                      fields.pop(externalized_field_name)
 |