โ07-05-2023 12:10 AM
Hello,
Iโm trying to create a user in Azure Ad via the Create entry snap but I keep receiving the following error โFailure: class java.lang.Boolean cannot be cast to class java.lang.String (java.lang.Boolean and java.lang.String are in module java.base of loader โbootstrapโ), Reason: Snap failed unexpectedly and did not provide any reasonโ
Any help would be greatly appreciated.
Thanks !
โ07-10-2023 02:35 AM
Hi, Please provide boolean value for accountEnabled with expression disabled.
You can also trying sending value from upstream as shown in below screenshot.
โ07-10-2023 04:07 AM
Hello,
Iโve tried changing to expression disabled and I receive the following error:
โFailure: REST API service endpoint returned error result: status code = 403, Reason: REST API service endpoint returned error result: status code = 403, reason phrase = Forbidden, refer to the error_entity field in the error view document for more details, Resolution: Please check the values of Snap properties.โ
or I receive the following error:
โFailure: REST API service endpoint returned error result: status code = 400, Reason: REST API service endpoint returned error result: status code = 400, reason phrase = Bad Request, refer to the error_entity field in the error view document for more details, Resolution: Please check the values of Snap properties.โ
Iโve checked the Azure account setup and it follows the below documentation on having the right access also I have access to data from the AD account by using the List Entries Azure AD snap and I receive the correct information.
https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1249608011/Application+Configuration+in+Az...
P.S In the second print you posted Iโve noticed that you receive the same error as I have initially.
โ07-10-2023 10:53 AM
Hello,
I have tried with different permissions and found that if โ Directory.ReadWrite.Allโ permissions is configured in azure portal then there is no permissions issue.
When only Directory.Read.All permission is configured in azure portal there would be 403 error.
In case there is no issue with app registration and permissions, then there could be issue with Snap configuration. Please provide a complex password for create user instead of โpasswordโ.
for example : xAA45WwvJ]6NMw+bWH-d
โ07-11-2023 12:26 AM
Hello,
I have the Directory.ReadWrite.All permission in azure portal, attached screenshot below of all permissions granted.
Iโve changed the password to a more complex one but unfortunately I still get the 403 error: