The way of retrieveing records from the security group is different and needs to be called using codeunit instead of SecurityGroup.FindSet.
In your case, you might want to replace it with other tables such as 'User Task Groups' and think of a workaround since the Security Group is inaccessible.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.