Skip to content

Commit

Permalink
change member of duo group directio
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonpetgrave64 committed May 17, 2023
1 parent 043f1c8 commit da9cb02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cartography/models/duo/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class DuoGroupToDuoUserRel(CartographyRelSchema):
target_node_matcher: TargetNodeMatcher = make_target_node_matcher(
{'group_id': PropertyRef('group_id')},
)
direction: LinkDirection = LinkDirection.INWARD
direction: LinkDirection = LinkDirection.OUTWARD
rel_label: str = "MEMBER_OF_DUO_GROUP"
properties: DuoGroupToDuoUserRelProperties = DuoGroupToDuoUserRelProperties()

Expand Down
4 changes: 2 additions & 2 deletions docs/root/modules/duo/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Represents a [group](https://duo.com/docs/adminapi#groups) in Duo.
- A DuoUser is part of multiple DuoGroups.

```
(DuoGroup)-[MEMBER_OF_DUO_GROUP]->(DuoUser)
(DuoUser)-[MEMBER_OF_DUO_GROUP]->(DuoGroup)
```


Expand Down Expand Up @@ -125,7 +125,7 @@ Represents a [user](https://duo.com/docs/adminapi#users) in Duo.
- A DuoUser is part of multiple DuoGroups.

```
(DuoGroup)-[MEMBER_OF_DUO_GROUP]->(DuoUser)
(DuoUser)-[MEMBER_OF_DUO_GROUP]->(DuoGroup)
```

- A DuoUser has multiple DuoEndpoints
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/cartography/intel/duo/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def test_sync_duo_users(neo4j_session):
'DuoGroup', 'id',
'DuoUser', 'id',
'MEMBER_OF_DUO_GROUP',
rel_direction_right=True,
rel_direction_right=False,
) == {
('groupid1', 'userid1'),
('groupid2', 'userid1'),
Expand Down

0 comments on commit da9cb02

Please sign in to comment.