Web Services Connector - Unable to Pass Entitlement Value in Account Creation HTTP Operation

I think the “Create Account With Ent Request” is conflicting with the “addRemoveEntInSingleReq” option, because I’m using this functionality with a different system.
This would be a real hack, but you might able to get around this if you

  1. uncheck the “Create Account With Ent Request” checkbox
  2. use a “GET” call as your Account Create operation just to return the account ID.
  3. Reconfigure your current “create” as an “Add Entitlement” operation.

This will force a successful response on the account creation task and then rely on the add entitlement option to add the access after the account is “created”.

1 Like

@KevinHarrington , since accounts aren’t really created on the target environment, the “Get” operation won’t return the user, unless I create a dummy “Get” operation that returns a 200 Ok each time it’s targeted. wdyt?

Hi @khalilgahbiche ,

Do you not have an API that can give you the results of the current user using GET operation. Then you can use that operation in Create Account operation and if this fails or the result is not found then anyways group membership should not proceed further.

And you can then use the current create operation as add Entitlement operation. CreateAccountWithEntRequest may not be needed here. If you want to use this operation then web service operation rule will be needed where you need to create your own restclient and then use a for loop against groups and make these api calls from the rule.

I hope this helps.

Regards
Vikas.

1 Like

@KevinHarrington , it worked :smiley:

Here’s what I did:

  • Created a dummy “Get Object” operation that always return 200 Ok

  • Created a dummy “Create Account” which is a copy of the “Get Object”

  • Created a “Add Entitlement” operation that will add the user to the group + Changed the body email value from $plan.userEmail$ to $plan.nativeIdentity$

  • DIsabled the “Create Account With “Ent” Request” option

  • The “addRemoveEntInSingleReq” is still set to false

This allowed me to add the external user to two different Google groups.

2 Likes

I’m trying your approach but it is not working for me.
Here what I did

  1. Create a dummy “Create Account” which is copy of “Test Connection” which is a Get Re
  2. Created a “Add Entitlement” operation and add the Body for creating account
  3. DIsabled the “Create Account With “Ent” Request” option
  4. The “addRemoveEntInSingleReq” is still set to false.

I’m getting Bad Request error But good thing is when I tried to add entitlement for existing user , So it is working fine.

Could you share a screenshot?

What screenshot you wanted to see?

If Operation Type is Create Account and we are passing Get Request , So according to your solution it should work but I’m getting Bad request . I think it should give Bad Request only.

Hello @sbhagat ,

Indeed, my “Create account” type operation is configured with a Get method and, AFAIK, is working fine. I’d like to know where did you spot the “Bad request” error message? I may be missing something so I need to check on my side as well.

Thanks.

Can you show me what have you done from vscode?
I just duplicate my test connection operation and change the Operation to Create.

I don’t have anything like userId

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.