Click HERE to see how Saviynt Intelligence is transforming the industry. |
10/08/2024 05:26 AM - edited 10/08/2024 09:13 AM
Hi Team,
We have a new user story
Custom apps data stores in payload, having application ID, email & minimum attributes data.
Integrate the custom apps into saviynt & pull the data/users.
We need to check the email has existed in Azure or not.
If email does not exist in azure AD, need to send an email invitation to enduser & create account in azure
If email has existed in azure AD no need to send an invite to enduser.
Could you please anyone suggest the related Graph API to validate the email in Azure, sending the email invitation to enduser & create an account in azure.
Thanks,
Sekhar
10/08/2024 10:07 AM
{
"invitedUserEmailAddress": "{email}",
"inviteRedirectUrl": "https://yourapplication.com",
"sendInvitationMessage": true
}
{
"accountEnabled": true,
"displayName": "John Doe",
"mailNickname": "johndoe",
"userPrincipalName": "johndoe@yourdomain.com",
"passwordProfile": {
"forceChangePasswordNextSignIn": true,
"password": "Password123!"
}
}
10/08/2024 10:22 AM
Thanks @rushikeshvartak for the quick response & informed me valuable information.
one change in the case.
we need to send an invitation to enduser, if user existed or not in both cases but invitation URL will vary based on the case.
Ex:
User existed URL: ABC.com
User do not existed URL: MNO.com
Can you please suggest API for this case.
Thanks
Sekhar
10/08/2024 10:31 AM
{
"invitedUserEmailAddress": "{email}",
"inviteRedirectUrl": "{redirectUrl}",
"sendInvitationMessage": true
}
email = "user@example.com" # The email to check
exists = check_user_exists(email) # Implement the GET /users/{email} API call
if exists:
redirect_url = "https://ABC.com" # URL for existing users
else:
redirect_url = "https://MNO.com" # URL for non-existing users
# Now send the invitation
send_invitation(email, redirect_url) # Implement the POST /invitations API call
10/28/2024 04:48 AM - edited 10/28/2024 05:14 AM
I need entire all steps in Single Json with multiple calls. Could you please share Json templates
While create account task is provisioning, should check email existed or not, if existed send an invite to email & attached the link as ABC.COM else send an invite to email & attached the link as MNO.COM & create an account
Thanks,
Sekhar
10/28/2024 07:06 AM
Refer https://docs.saviyntcloud.com/bundle/Dev-Handbook-REST-v24x/page/Content/Developers-Handbook.htm