Book a Demo

Author Topic: Relationship matrix user information  (Read 2979 times)

rupertkiwi

  • EA User
  • **
  • Posts: 133
  • Karma: +5/-0
    • View Profile
Relationship matrix user information
« on: June 27, 2019, 02:37:01 pm »
Hi there,
I am trying to display user information on a relationship matrix.

I would like Users as the Source, and Groups as the Target.

I have created a query for the users, but can't seem to get the information displaying in the matrix:

select a.UserID AS CLASSGUID, 'Object_Type' AS CLASSTYPE,a.firstname + ' ' + a.surname AS Name
from t_secuser a
order by 3


Does anyone have any ideas?

Thanks,
Rupert

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Relationship matrix user information
« Reply #1 on: June 27, 2019, 03:44:36 pm »
Rupert,

The Relationship matrix will only show you the relations between elements (t_object) when there is a relation (t_connector) between them.

It doesn't work to show relations between users and usergroups.

You can however create a search query that will give you an overview of users and the security groups they are in.
You'll have to join t_secuser with t_secusergroup and then with t_secgroup.

Geert

rupertkiwi

  • EA User
  • **
  • Posts: 133
  • Karma: +5/-0
    • View Profile
Re: Relationship matrix user information
« Reply #2 on: June 27, 2019, 04:00:29 pm »
Thanks Geert.

I already have that query:

select a.userlogin,a.firstname + ' ' + a.surname AS Name,d.groupname
from t_secuser a inner join t_secusergroup b
on a.userid=b.userid
inner join t_secgroup d
on b.groupid=d.groupid


but I wanted to display it in a Pivot table or Matrix form.

Doesn't look like it's possible unfortunately.

Cheers,
Rupert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Relationship matrix user information
« Reply #3 on: June 27, 2019, 06:04:24 pm »
You could copy/paste the result to Excel and use grouping there.

q.