Hi LucD,
Thank you for the above, the script creates the role with the correct permissions but fails to create the user and add the user to the exception users list in lockdown mode.
See attached errors for your reference.
Please advise and let me know if I am doing something wrong.
Thanks in advance.