When a new user is created, we want IDM to send an email with a link to allow the user set his initial password. Its authentication must be with a token.
Is there any way we can set a forgotten password token for a user from outside SSPR?
I'm thinking of creating a token using an IDM rule and store it in pwmToken, but I see that SSPR stores the token hashed in this attribute.
Another option, would be to use the REST API, but I can't see any method to have SSPR define and send the token.

Any idea?

Jose Luis