Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/03/2023 08:46 AM
Hello Team,
We are using the OOTB Salesforce connector and we are getting the below error while provisioning
Error in user creation errorCode: MALFORMED_IDmessage: Profile ID: id value of incorrect type: null
PFB the create account json
{
"Username": "${user.customproperty16!=null? user.customproperty16:user.email}",
"Alias": "${user.firstname.toString().substring(0,1)}${if(user.lastname.length()>=4){user.lastname.toString().substring(0,4)}else{user.lastname.toString().substring(0,user.lastname.length())}}",
"LastName": "${user.lastname}",
"FirstName": "${user.preferedFirstName!=null? user.preferedFirstName:user.firstname}",
"MiddleName": "${if ((user.middlename == null || user.middlename == '')) {''} else {user?.middlename }}",
"CompanyName": "${if ((user.companyname == null || user.companyname == '')) {''} else {user?.companyname }}",
"Department": "${if ((user.departmentname == null || user.departmentname == '')) {''} else {user?.departmentname }}",
"Title": "${if ((user.title == null || user.title == '')) {''} else {user?.title}}",
"Street": "${if ((user.street == null || user.street == '')) {''} else {user?.street}}",
"City": "${if ((user.city == null || user.city == '')) {''} else {user?.city}}",
"State": "${if ((user.regioncode == null || user.regioncode == '')) {''} else {user?.regioncode}}",
"PostalCode": "${if ((user.customproperty3 == null || user.customproperty3 == '')) {''} else {user?.customproperty3}}",
"Country": "${if ((user.country == null || user.country == '')) {''} else {user?.country}}",
"Email": "${user.customproperty16!=null? user.customproperty16:user.email}",
"EmailPreferencesAutoBcc": true,
"EmailPreferencesAutoBccStayInTouch": false,
"EmailPreferencesStayInTouchReminder": true,
"CommunityNickname": "${user.username}",
"IsActive": false,
"TimeZoneSidKey": "${reqAttr.get('customproperty23') != null ? reqAttr.get('customproperty23') : 'America/New_York'}",
"LocaleSidKey": "en_US",
"ReceivesInfoEmails": true,
"ReceivesAdminInfoEmails": true,
"EmailEncodingKey": "ISO-8859-1",
"LanguageLocaleKey": "en_US",
"EmployeeNumber": "${user.employeeid}",
"ProfileId": "${profileId}",
"UserPermissionsMarketingUser": false,
"UserPermissionsOfflineUser": false,
"UserPermissionsAvantgoUser": false,
"UserPermissionsCallCenterAutoLogin": false,
"UserPermissionsMobileUser": false,
"UserPermissionsSFContentUser": false,
"UserPermissionsInteractionUser": false,
"UserPermissionsSupportUser": false,
"ForecastEnabled": false,
"UserPreferencesActivityRemindersPopup": true,
"UserPreferencesEventRemindersCheckboxDefault": true,
"UserPreferencesTaskRemindersCheckboxDefault": true,
"UserPreferencesReminderSoundOff": false,
"UserPreferencesDisableAllFeedsEmail": false,
"UserPreferencesDisableFollowersEmail": false,
"UserPreferencesDisableProfilePostEmail": false,
"UserPreferencesDisableChangeCommentEmail": false,
"UserPreferencesDisableLaterCommentEmail": false,
"UserPreferencesDisProfPostCommentEmail": false,
"UserPreferencesApexPagesDeveloperMode": false,
"UserPreferencesHideCSNGetChatterMobileTask": false,
"UserPreferencesDisableMentionsPostEmail": false,
"UserPreferencesDisMentionsCommentEmail": false,
"UserPreferencesHideCSNDesktopTask": false,
"UserPreferencesHideChatterOnboardingSplash": true,
"UserPreferencesHideSecondChatterOnboardingSplash": true,
"UserPreferencesDisCommentAfterLikeEmail": false,
"UserPreferencesDisableLikeEmail": false,
"UserPreferencesSortFeedByComment": true,
"UserPreferencesDisableMessageEmail": false,
"UserPreferencesDisableBookmarkEmail": false,
"UserPreferencesDisableSharePostEmail": false,
"UserPreferencesEnableAutoSubForFeeds": false,
"UserPreferencesDisableFileShareNotificationsForApi": false,
"UserPreferencesShowTitleToExternalUsers": false,
"UserPreferencesShowManagerToExternalUsers": false,
"UserPreferencesShowEmailToExternalUsers": false,
"UserPreferencesShowWorkPhoneToExternalUsers": false,
"UserPreferencesShowMobilePhoneToExternalUsers": false,
"UserPreferencesShowFaxToExternalUsers": false,
"UserPreferencesShowStreetAddressToExternalUsers": false,
"UserPreferencesShowCityToExternalUsers": false,
"UserPreferencesShowStateToExternalUsers": false,
"UserPreferencesShowPostalCodeToExternalUsers": false,
"UserPreferencesShowCountryToExternalUsers": false,
"UserPreferencesShowProfilePicToGuestUsers": true,
"UserPreferencesShowTitleToGuestUsers": false,
"UserPreferencesShowCityToGuestUsers": false,
"UserPreferencesShowStateToGuestUsers": false,
"UserPreferencesShowPostalCodeToGuestUsers": false,
"UserPreferencesShowCountryToGuestUsers": false,
"UserPreferencesHideS1BrowserUI": false,
"UserPreferencesDisableEndorsementEmail": false,
"UserPreferencesPathAssistantCollapsed": false,
"UserPreferencesCacheDiagnostics": false,
"UserPreferencesShowEmailToGuestUsers": false,
"UserPreferencesShowManagerToGuestUsers": false,
"UserPreferencesShowWorkPhoneToGuestUsers": false,
"UserPreferencesShowMobilePhoneToGuestUsers": false,
"UserPreferencesShowFaxToGuestUsers": false,
"UserPreferencesShowStreetAddressToGuestUsers": false,
"UserPreferencesLightningExperiencePreferred": false,
"UserPreferencesPreviewLightning": false,
"UserPreferencesHideEndUserOnboardingAssistantModal": false,
"UserPreferencesHideLightningMigrationModal": false,
"UserPreferencesHideSfxWelcomeMat": false,
"UserPreferencesHideBiggerPhotoCallout": false,
"UserPreferencesGlobalNavBarWTShown": false,
"UserPreferencesGlobalNavGridMenuWTShown": false,
"UserPreferencesCreateLEXAppsWTShown": false,
"UserPreferencesFavoritesWTShown": false
}
Please let us know if we are missing anything.
Regards,
rashmitha
08/08/2023 09:22 AM
Are you able to create the user from postman ? Make sure you are using the same payload as you are sending from Saviynt and the Service account.
08/08/2023 09:44 PM
Hi @RCreddy
The error indicates that the entitlement of type "Profile" you're provisioning from Saviynt doesn't have the proper ID populated in Saviynt.
Please make sure that the profile entitlement have the "entitlementID" populated in Saviynt. Use the below query from data analyzer find out the same
select entitlement_value,entitlementid from entitlement_values where entitlementtypekey in (select entitlementtypekey from entitlement_types where entitlementname='Profile') and entitlement_value='<your profile entitlement value here>'
Let me know if this helps!