We are trying to add an attribute that is in the account schema to add an access profile, however this attribute is not shown in the plan, is it possible to add an account attribute that comes in the aggregation of this source in the plan to add a new access?
For example, attributeA and attributeB both come in the aggregation of the account we are talking about, but only attributeA appears in the plan for adding a profile, attributeB does not appear.
My question is how can I add this attribute to the plan?
This is the body we are sending when adding accesses:
{
“login”:“$plan.nativeIdentity$#fonte”,
“permissoes”:[
{
“codigo”:“$plan.menu_permissoes$”,
“funcionalidades”:[
{
“acao”:[
“incluir”,
“alterar”,
“pesquisar”,
“excluir”,
“bloquear”,
“aprovar”
],
“codigo”:“$plan.menu_funcionalidades$”
}
]
}
]
}
This variable “$plan.menu_functionalidades$” brings the value, however this variable “$plan.menu_permissoes$” is removed because it is empty, but we have both attributes in the account, and we only get one value, but to add the profile it is essential May we have both.
Can anyone help me how to build a rule to get this value?
Could you send me a example, how can I do this, in the source of the accounts? Because I did this using attributes of the Identity, but using accounts attibutes I didnt.
Create a Before Provisioning Cloud rule to include it there
Create a Before Operation Connector rule, and make an API call to get the account from ISC - search this forum for “X-IDNUrl” and you will find some code for it.
In the provisioning plan, you can create an attribute called “attributeB2” and set the value to be attributeB, this way you will have it.
POST {{api_url}}/beta/sources/<source>/provisioning-policies
Thanks a lot for your help, gave me a different vision about webservice integrations. Now we can see the value of the attibute, therefore we can not to take this value, we have used “$plan.attributeB2$”, but this value is empaty. We have a different for to get this value?