tenant admin pw reset return empty data class instance

This commit is contained in:
2020-03-09 10:18:16 -04:00
parent c48a378850
commit 62e69c5181
2 changed files with 6 additions and 0 deletions

View File

@@ -55,6 +55,7 @@ from .models import (
TenantAdminOwnershipCSPPayload,
TenantAdminOwnershipCSPResult,
TenantAdminCredentialResetCSPPayload,
TenantAdminCredentialResetCSPResult,
TenantCSPPayload,
TenantCSPResult,
TenantPrincipalAppCSPPayload,
@@ -948,6 +949,8 @@ class AzureCloudProvider(CloudProviderInterface):
self._update_active_directory_user_password_profile(graph_token, payload)
return TenantAdminCredentialResetCSPResult()
def create_tenant_admin_ownership(self, payload: TenantAdminOwnershipCSPPayload):
mgmt_token = self._get_elevated_management_token(payload.tenant_id)