How do I register a user to a specific group and user type through idx.register() ?
Step 1
let registerTransaction = await oktaAuth.idx.register({
firstName: "testuser",
lastName: "testlastname",
email: "testemail@gmail.com"
authenticators: ["okta_password"]
});
and then proceed with
Step 2
const proceedTransaction = await oktaAuth.idx.proceed({
password: "myPwd"
});
for the above step 2 I get status as Pending and nextStep as select-authenticator-enroll for email and phonenumber and that could be because authenticator enrollment policy as email and phone number is optional. But since I need registration only with password I have step 3 because in availableSteps I have select-authenticator-enroll, skip and cancel
Step 3
const skipTransaction = await oktaAuth.idx.proceed(
{ skip: true }
);
for the above step 3 I get status as Success with tokens consisting of access and id.
The user gets created with the password but the user is added to “Everyone” group and user type is “User”. Is it possible to provide group and user type in idx functions ?