How to get all the projectspace list under a workspace that a user has access to

This pipeline will give the list of all projectspace details under a workspace that the user has access to.

the flow is like that-

  1. it will scan all project space details under a workspace.
  2. it will find out the unique list of group name those are involved in that workspace. will find out the member list of those group list. will filter the group list where the specified user is present.
  3. it will find the the project space where those filtered group list has access to.
  4. it will filter the project space list where the specified user has access to.
    7.finally it will merge the result derived for group list and individual user permission.

the configuration of some snap is below: