How to pass group id in the context url

Hi All,

I am implementing a web service connector and one of the the http operations is ‘Add Entitlement’ wherein I have to add a user in a group. The API call requires to get the Group ID. The group ID in this case is a dynamic value since the group will depend on the request of the user. Is there a way to get the group id and pass it in the context url in the http operation?

Here is the group schema:

Thank you!

Hi @jasmedina ,

You can pass entitlements to context dynamically using below format:

$plan.<Entitlement attribute Name From Account Schema>$

If entitlement attribute in account schema is groups then following would be the example format to pass it in the context url :

$plan.groups$

In the body, you can specify the identity using following object:

$plan.nativeIdentity$

For more information, refer to Webservices HTTP Operations connector documentation

I hope this helps.

Thanks,
Vijay

Hi @VijayMaripi! Thank you for the response!

How about for Entitlement Type “group” then on that group schema, I need to pass the attribute groupid. What would be the correct syntax? I tried to use $plan.groupid$ but it was only returning null.

Thank you!

Hi @jasmedina,

Check the attribute name that you have in your account schema marked as your entitlement and call it with the $plan prefix.

eg. if attribute name = ent, call it as $plan.ent$

1 Like

Thank you, Jesvin! This resolves it! :slight_smile: