As per my knowledge ,
It’s not possible to directly search for identities based on role metadata because:
- Separation of Data Models: Identities and roles are distinct models in SailPoint.
- Searchable Fields: The searchable fields for identities don’t include role metadata.
- Role Metadata: Role metadata is nested within roles and not directly accessible when searching identities.
- Complex Relationships: Roles and identities are loosely coupled, so querying identities based on role metadata requires a two-step process.
Alternative is to use API Search