Unable to update samAccountName logic in provisioning policy

Hi Team,

We have a custom logic requirement for sAMAccountName in AD as below:

where:
= Random alpha characters, changes every month
= First name initial and Last name initial
= random number that is generated

We have written the logic as below in the provisioning policy .

  {
            "name": "sAMAccountName",
            "transform": {
                "attributes": {
                    "randomAlpha": {
                        "attributes": {
                            "name": "Cloud Services Deployment Utility",
                            "operation": "generateRandomString",
                            "includeNumbers": "false",
                            "includeSpecialChars": "false",
                            "requiresPeriodicRefresh": "false",
                            "length": "2"
                        },
                        "type": "rule"
                    },
                    "firstInitial": {
                        "attributes": {
                            "input": {
                                "attributes": {
                                    "sourceName": "WorkDaySandBox",
                                    "attributeName": "FIRST_NAME"
                                },
                                "type": "accountAttribute"
                            },
                            "begin": 0,
                            "end": 1
                        },
                        "type": "substring"
                    },
                    "lastInitial": {
                        "attributes": {
                            "input": {
                                "attributes": {
                                    "sourceName": "WorkDaySandBox",
                                    "attributeName": "LAST_NAME"
                                },
                                "type": "accountAttribute"
                            },
                            "begin": 0,
                            "end": 1
                        },
                        "type": "substring"
                    },
                    "randomNumeric": {
                        "attributes": {
                            "length": "4",
                            "requiresPeriodicRefresh": "false"
                        },
                        "type": "randomNumeric"
                    },
                    "value": "$randomAlpha$firstInitial$lastInitial$randomNumeric"
                }
            },
            "attributes": {
                "cloudRequired": "true"
            },
            "isRequired": false,
            "type": "string",
            "isMultiValued": false
        }

When trying to post this through API we get sAMAccountName set as Disable in UI:


We have tried this using both Beta and V3 APIs.
Let us know the possible solution to fix this asap.

Which API did you use to set the provisioning policy? What did your request body look like?