Why this matters
Identity providers like Microsoft Entra ID often pack useful information into group names. A group called Finance-CloudZero-1234 carries the cost center, 1234, inside a longer string. Previously we were matching on the full group name, so every cost center needed its own role, even when the permissions were identical.
Now one role per permission level can cover dozens of cost center groups, and each user only sees spend for their own cost center. When IT creates a new group in your identity provider (IdP), the people assigned to it get the right access the next time they sign in, with no updates in CloudZero. Group changes in your IdP flow through the same way. Access reviews come down to a handful of roles instead of dozens.
What we built
Pattern Rules for Dynamic Roles are now generally available. They build on Dynamic Role Filtering, which sets a role’s filter values from each user’s SSO attributes at sign-in. Pattern Rules go one step further. Instead of using the whole attribute value, CloudZero pulls out just the part you need and matches it to your Dimension data.
A rule is defined by the text that comes before the value, the kind of value to capture, and optionally the text that comes after. For Finance-CloudZero-1234, that’s Finance-CloudZero- followed by digits. Four capture types cover the common formats: digits only, letters/numbers/underscore, anything except a comma, or anything.
A live preview in the role editor shows what your rule resolves to against your real SSO values before you save. You can also manage Pattern Rules through the API.

A Pattern Rule in the role editor. The live preview shows CloudZero-Engineering resolving to Engineering before you save.
How it works
Pattern Rules are available on Limited Access roles for any organization with SSO connected. In a role’s access filters, add an SSO login attribute filter, pick the Dimension you want to restrict, and choose Extract part of the value. Anyone whose group name matches the pattern is also placed in that role, so they get its permissions along with its data access. The captured value needs to match your Dimension values exactly, including casing. If it doesn’t, that user sees no data. Read more in the docs.