Hi everyone,
I had a requirement that was related to security access (permission access). I will provide an example for better understanding:
Example:
| User 1 (U1) | Team Lead 1 | Manager 1 |
| User 2 (U2) | Team Lead 1 | Manger 1 (M1) |
| User 3 (U3) | Team Lead 2 (TL2) | Manager 2 (M2) |
Here User1 and User2 are under TeamLead1 so TeamLead1 should be able to view his/her record along with that they can access the two users records that are under them and similarly Manager1 will be able to access his/her record as well records of TL1, U1,U2.
Manager2 will only be to access TeamLead2 and User3 records and won't be able to access/view other records (that includes U1,U2,TL1,M1) same is the case for Manager1 and TeamLead1.
So as of now what I have done is implemented 2 scenarios which include the Admin side (where they will have the complete control no restriction i.e. Individuals with admin role will be able to access all the records) and the other part is Employee (wherein any employee will only be able to edit/view only those records that they have created, other records will not be accessible).
To achieve this I have made use of Item-level permissions that is provided by SP and selected the following:

And to manage the access have created a flow (which won't affect admin access)

Current admin view: (As mentioned Admin will be able to access all records)

For a Employee/User:

So if anyone has any idea's or has implemented it before please do let me know, it will be helpful.
Regards,
Sidhant.