Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/12/2022 12:57 PM
Hello All,
We are provisioning groupType values based on the combination of the Group Scope and Group Category. However these two fields are not mandatory on create AD groups form. In case user does not select the Group Category and Group Scope then AD group provisioning fails with AttributeValueConversion exception because SSM try to provision groupTYpe value as shown below. We tried using the flag where we can ignore the null or blank value during provisioning but it does not work. Even if this flag works we may not be able to use it considering the cases where blank values need to provisioned to AD.
"groupType": "null",
JSON for groupType:
"groupType": "${if(role?.customproperty21 != null && role?.customproperty22 != null){role?.customproperty21 == 'Security' && role?.customproperty22 == 'Global'?'-2147483646' : role?.customproperty21=='Security'&&role?.customproperty22=='Universal'?'-2147483640' : role?.customproperty21== 'Security'&&role?.customproperty22=='Domain Local' ? '-2147483644':role?.customproperty21=='Distribution'&&role?.customproperty22=='Global' ? '2':role?.customproperty21== 'Distribution'&&role?.customproperty22=='Universal'?'8':role?.customproperty21=='Distribution'&& role?.customproperty22=='Domain Local'?'4':''}}",
Any help to resolve this issue?
Thanks,
Pallavi
Solved! Go to Solution.
04/12/2022 01:59 PM
Hi Pallavi,
Greetings!!
groupType is a mandatory attribute for a group object at AD end.
In case, you want to enforce user to select Group scope and Group Category, Please make necessary changes at GSP end.
Otherwise, you could also enforce default group creation with groupType as Security-Global ( -2147483646 : which is also a standard at active directory end - Could be seen from ADUC (Active directory users and computers console of group creation)). In order to achieve this you could evaluate the last else condition to -2147483646 which is null at present.
"groupType": "${if(role?.customproperty21 != null && role?.customproperty22 != null){role?.customproperty21 == 'Security' && role?.customproperty22 == 'Global'?'-2147483646' : role?.customproperty21=='Security'&&role?.customproperty22=='Universal'?'-2147483640' : role?.customproperty21== 'Security'&&role?.customproperty22=='Domain Local' ? '-2147483644':role?.customproperty21=='Distribution'&&role?.customproperty22=='Global' ? '2':role?.customproperty21== 'Distribution'&&role?.customproperty22=='Universal'?'8':role?.customproperty21=='Distribution'&& role?.customproperty22=='Domain Local'?'4':'-2147483646'}}"
Thanks & Regards,
Anand Kumar Jha
04/12/2022 01:59 PM
Thanks Anand for your reply. I am doing it in the same way, have added default value in case user did not select the input. I wanted to check how other product users are handling this case hence raised query on forum. Thanks I got my answer.
Thanks,
Pallavi