You are here

public function Users::deleteMultifactorProvider in Auth0 Single Sign On 8.2

Delete the multifactor provider settings for a particular user. This will force user to re-configure the multifactor provider. Required scope: "update:users"

@link https://auth0.com/docs/api/management/v2#!/Users/delete_multifactor_by_p...

Parameters

string $user_id User ID with the multifactor provider to delete.:

string $mfa_provider Multifactor provider to delete.:

Return value

mixed|string

Throws

\Exception Thrown by the HTTP client when there is a problem with the API call.

File

vendor/auth0/auth0-php/src/API/Management/Users.php, line 233

Class

Users
Class Users. Handles requests to the Users endpoint of the v2 Management API.

Namespace

Auth0\SDK\API\Management

Code

public function deleteMultifactorProvider($user_id, $mfa_provider) {
  return $this->apiClient
    ->method('delete')
    ->addPath('users', $user_id)
    ->addPath('multifactor', $mfa_provider)
    ->call();
}