After I created a new user with ManagementAPI, I want to get the user’s ID.
Auth0::management()
->users()
->create(
connection: 'Username-Password-Authentication',
body: [
'name' => $request->name,
'email' => $request->email,
'password' => $request->password,
'email_verified' => true
]
);
A new user is created by above code.
After that, I need to retrieve the ID of the newly created user.
How can I do that?