Hi sam,
Steps:
1. Add new custom attribute to gluu server: see doc [here](https://gluu.org/docs/ce/admin-guide/attribute/#custom-attributes).
2. Use custom attribute in scim API(https://gluu.org/docs/ce/user-management/scim2/#handling-custom-attributes-in-scim-client)
3. From custom script, retrieve the custom attribute
```
userSatus = self.getUserAttributeValue(user_name, "gluuStatus")
```
See custom script added in attachment for reference.