Hi Folks,
I am not able to pass all the non-entitlement attributes in Add Entitlement operation for the Web service connector. So, I have 2 types of entitlements - workManagerRole & builderRole. I am using two separate add entitlement operations:
- Add Entitlement-workManagerRole
- Add Entitlement-workManagerRole .
The application endpoint configured as context url is same for both of these. Request Body I am using:
{ "CompanyGUID": null, "EmailAddress":"$plan.EmailAddress$", "Firstname":"$plan.Firstname$", "Surname":"$plan.Surname$", "Timezone":"$plan.Timezone$", "PreferredLanguage":"en-gb", "Username":"$plan.Username$", "UserType":1, "AllowedPacketTypes":10, "IsSSOOnly":true, "BuilderRoleGUID": "$plan.BuilderRoleGUID$", "GUID":"$plan.nativeIdentity$" }
Error :
Exception while updating account.Url: https://xxxxxx/UserManagement/UpdateUser, Message: 400 : Bad Request : {“Messages”:[{“MessageID”:312241,“RelatedObjectGUID”:“049a204b-b1e1-4231-bfd8-e5ebba314a49”,“RelatedObjectType”:312,“IsError”:true,“MessageDescription”:“Username is required.”,“Parameters”:[]},{“MessageID”:312454,“RelatedObjectGUID”:“049a204b-b1e1-4231-bfd8-e5ebba314a49”,“RelatedObjectType”:312,“IsError”:true,“MessageDescription”:“First name is required.”,“Parameters”:[]},{“MessageID”:312457,“RelatedObjectGUID”:“049a204b-b1e1-4231-bfd8-e5ebba314a49”,“RelatedObjectType”:312,“IsError”:true,“MessageDescription”:“Surname is required.”,“Parameters”:[]},{“MessageID”:312245,“RelatedObjectGUID”:“049a204b-b1e1-4231-bfd8-e5ebba314a49”,“RelatedObjectType”:312,“IsError”:true,“MessageDescription”:“EmailAddress is required.”,“Parameters”:[]},{“MessageID”:312087,“RelatedObjectGUID”:“049a204b-b1e1-4231-bfd8-e5ebba314a49”,“RelatedObjectType”:312,“IsError”:true,“MessageDescription”:“Timezone is required.”,“Parameters”:[]}],“Result”:null}, HTTP Error Code: 400
But if I pass the static values in the operation body from SailPoint it is working. This is working :
{ "CompanyGUID": null, "EmailAddress":"[email protected]", "Firstname":"David Hernando", "Surname":"Montoya Romero", "Timezone":"America/Bogota", "PreferredLanguage":"en-gb", "Username":"David Hernando Montoya Romero", "UserType":1, "AllowedPacketTypes":10, "IsSSOOnly":true, "WorkManagerRoleGUID": "$plan.WorkManagerRoleGUID$", "GUID": "$plan.nativeIdentity$" }
Seems $plan is not working. I have created UPDATE policy also, having all the plan attributes mapped there.