Change default RepositoryAttribute
This use case is only accessible if setting default RepositoryAttributes is enabled in the Runtime configuration. By default, this is only the case for the App and not for the Connector.
If setting default RepositoryAttributes is enabled, for every IdentityAttribute value type exactly one RepositoryAttribute will have the property isDefault set, given that at least one RepositoryAttribute of that value type exists.
By default, this is the first RepositoryAttribute of that value type that was created.
However, if the default RepositoryAttribute is succeeded, its successor will become the new default RepositoryAttribute.
This use case allows you to change the default RepositoryAttribute.
Parameters
- The
attributeIdof the RepositoryAttribute that is to be the new default RepositoryAttribute.
On Success
- The RepositoryAttribute belonging to the input
attributeIdhasisDefaultset and is returned. Further, the former default RepositoryAttribute hasisDefaultunset.
On Failure
- The default RepositoryAttribute can’t be changed if the provided
attributeIddoesn’t correlate to a RepositoryAttribute. - The default RepositoryAttribute can’t be changed if the provided
attributeIdcorrelates to a RepositoryAttribute with a successor. - The default RepositoryAttribute can’t be changed if the parameters are malformed.