Can I restrict posts to users, based on tags, linked to BP Groups privileges?

Hello!

I want to hide posts by tagging them from users based on their BP group.

Example:
If a post is tagged with "group a" , then a user that belongs to Group A can view the post.
If they belong to Group B, they get a descriptive page like. "Not info for group A"

I have 36 groups that I want to select content for/restrict content from by simply tagging posts with the appropriate tag.

Can this be done out of the box or with som extra code that is in your excellent toolbox?
best
j