Generate Password

Hi,

I’m trying make use of transform to generate a password which does not contain repeating characters. I’m not able find an option to achieve this through transform. Has anyone tried or is there any alternate way to achieve this?

Hi @chandramohan27 ,
Greetings of the day!

you can use generateRandomString or randomAlphaNumeric or randomNumeric.

Let me know for any queries.
Thank You
Mahesh M

Hi @chandramohan27 ,

if you want to Generate the password you can use the below link but it will generate Random Numeric and one more is there that is Random Alphanumeric

Thank you!

@Abhishek_1995

Yes, I tried this. But I want to have condition not to have repeating characters.

Use Password policy, configure this. Use Generator.

For more info, check this doc

1 Like

@KRM71

Yes, I checked this. But there is no option to set the value as 0. because I donot have any repeating characters in Password.

Select 1, it will work.

@chandramohan27 is there any pattern which you want to use or all random character’s?

Thanks
Shantanu

@schattopadhy

all random characters but no repeating characters.

example: test@123demo is valid

testting@123 is invalid

Thanks,

let me try.

In “CREATE POLICY”, I can select “CREATE PASSWORD” and this configure default password policy as suggested, and this will not generate a password with repeating characters right?

example: test@123demo is valid

testting@123 is invalid

@chandramohan27 you can refer to the below sample and use this in create profile according to your need.also please help to mark it as solution if it helped

 {
                "attributes": {
                    "cloudRequired": "true"
                },
                "isRequired": false,
                "multi": false,
                "name": "password",
                "transform": {
                    "attributes": {
                        "input": {
                            "attributes": {
                                "name": "attributename"
                            },
                            "type": "identityAttribute"
                        },
                        "table": {
                            "default": {
                                "attributes": {
                                    "values": [
                                        {
                                            "attributes": {
                                                "value": "Welcome@"
                                            },
                                            "type": "static"
                                        },
                                        {
                                            "attributes": {
                                                "phone": {
                                                    "attributes": {
                                                        "values": [
                                                            {
                                                                "attributes": {
                                                                    "name": "workPhone"
                                                                },
                                                                "type": "identityAttribute"
                                                            },
                                                            "1234"
                                                        ]
                                                    },
                                                    "type": "firstValid"
                                                },
                                                "value": "#set ($strl = $phone.length() - 4)$phone.substring($strl)"
                                            },
                                            "type": "static"
                                        }
                                    ]
                                },
                                "type": "concat"
                            },
                            
                            "true": {
                                "attributes": {
                                    "values": [
                                        "Welcome@",
                                        {
                                            "attributes": {
                                                "phone": {
                                                    "attributes": {
                                                        "values": [
                                                            {
                                                                "attributes": {
                                                                    "name": "identificationNumber"
                                                                },
                                                                "type": "identityAttribute"
                                                            },
                                                            {
                                                                "attributes": {
                                                                    "name": "attribute name"
                                                                },
                                                                "type": "identityAttribute"
                                                            },
                                                            "1234"
                                                        ]
                                                    },
                                                    "type": "firstValid"
                                                },
                                                "value": "#set ($strl = $phone.length() - 4)$phone.substring($strl)"
                                            },
                                            "type": "static"
                                        }
                                    ]
                                },
                                "type": "concat"
                            }
                        }
                    },
                    "type": "lookup"
                },
                "type": "secret"
            },
1 Like