Skip to content

Is there a concept of a type being a user in relation to itself? #259

Answered by aaguiarz
a0js asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @a0js,

There currently no way to achieve it without the additional tuple. However, if you have service accounts, it might make sense to control which services account can access each account:

model
  schema 1.1

type person
type service_account

type account
  relations
     member: [person]
     
     can_haz_access: [person, account#member, service_account] 

That way you can have multiple services account and give each one permissions to the account they own.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@a0js
Comment options

@aaguiarz
Comment options

@a0js
Comment options

@aaguiarz
Comment options

Answer selected by a0js
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants