Script | Fill Resource "User Field"-Value

Dear Bentley Communities Team,

It is possible through a script to fill resource-"user fields” values with information from the associated activity/task?

Thank you in advance for reading and for the response you can provide me with.

Best regards,

Mariel