WebService Add Entitlement

Hello everyone I’m creating a Webservice Connector and need some guidance of how to get HTTP Operation “Add Entitlement working. I keep getting the error code which I’ve added below. I’ve also attached a screenshot of what I have. For the API there isn’t a JSON body that I have to send. Something is wrong with the groupid/userid portion. What can I do to fix this?

Provisioning

Exception while updating account.Url: https://ceivmaqxd/flexdeploy/v2/administration/security/groupmember//???, Message: 404 : Not Found : , HTTP Error Code: 404

Hi @AHMADIAM2,

This is an excellent challenge with Web Service Connector. Seems like the URL was build without the expected Group ID and User ID which resulted in the classic 404 not found error/status.

Maybe you can achieve this requirement without attaching a WebServicesBeforeOperation rule to the Add Entitlement HTTP Operation to build the endpoint / URL dynamically.

Try modifying the URL as below and let us know if it works for you :slight_smile: : -

/flexdeploy/v2/administration/security/groupmember/$plan.Groupid$/$plan.userid$

Perhaps the key is not$plan.Groupid$, this is usually the account attribute you marked as entitlement. You can find it potentially in logs by enabling debug. Also similarly for userid, perhaps you might have better luck using $plan.nativeIdentity$

Good luck