LPS-48507 Improve performance by only writing roles to the LAR that have...

... actions for the resource