Arif
12/02/2025, 9:53 AMclient.management.user.create(
loginId,
processedUserData
)But user status in descope shows invited, is there any way to mark that user status Active by default without login?
Arif
12/02/2025, 12:19 PMRahul Rijhwani
12/02/2025, 12:49 PMcreate, users are created without sending an invite and should have an Active status. If users show as "Invited", you're likely using the invite parameter or the wrong method.
Use createUser() without the invite flag:
const resp = await descopeClient.management.user.createUser(
loginId,
email,
phone,
displayName,
roles,
userTenants,
customAttributes,
picture,
verifiedEmail,
verifiedPhone,
null,
null,
null,
additionalLoginIds
);
The key difference: Create will not send an invite. If you want to send an invite on creation, use Invite User instead.
To ensure Active status:
• Don't set the invite parameter to true
• Users created with create should be Active by default
• Once a user successfully signs in, their status changes from Invited to Active
If you need users to be Active immediately without login, use the create method (not invite), and they should appear as Active in the Descope Console.
Check this doc: https://docs.descope.com/management/user-management
https://docs.descope.com/management/user-management/sdksArif
12/02/2025, 1:14 PMRahul Rijhwani
12/02/2025, 2:33 PMRahul Rijhwani
12/02/2025, 3:24 PMArif
12/02/2025, 3:44 PMRahul Rijhwani
12/02/2025, 5:20 PM