AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Generic I...
Joining Row level s...
 
Notifications
Clear all

Questions Joining Row level security and users table

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by Royce Lithgo 6 years ago
11 Posts
5 Users
1 Reactions
2,877 Views
RSS
Peter John Sarador
Posts: 13
 Peter John Sarador
Topic starter
April 22, 2019 1:38 am
(@peter-john-sarador)
Eminent Member
Joined: 4 years ago

Hi Tim,

Can you help me to create a generic inquiry for the user access in a group in row level security. I want to know who are the users that can access a specific group name.

My tables are PX.SM.RelationGroup and PX.SM.Users.  But I'm stuck with relations, I've already use the groupMask field but it didn't work.

Please the attached file.

Thank you


10 Replies
Royce Lithgo
Posts: 557
 Royce Lithgo
April 23, 2019 8:48 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Restriction Groups by User under the Explore menu of RLS already gives you this information.


Reply
Peter John Sarador
Posts: 13
 Peter John Sarador
Topic starter
April 24, 2019 10:03 pm
(@peter-john-sarador)
Eminent Member
Joined: 4 years ago

Thanks for your feedback Royce. But what I want is to create a report with this that is why I need this inquiry. 


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
April 25, 2019 9:35 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Well your query design worked fine for me. I changed it to inner join to filter users with no RLS security enabled. 

The results were consistent with the Restriction Groups by User page except that only Restriction Groups with the left most box ticked are shown. 

What issue are you having?


Reply
Peter John Sarador
Posts: 13
 Peter John Sarador
Topic starter
April 25, 2019 11:30 pm
(@peter-john-sarador)
Eminent Member
Joined: 4 years ago

I've already tried this one. But still if I have access in multiple group name it can't be read by this inquiry.


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
April 26, 2019 12:23 am
(@roycelithgo)
Honorable Member
Joined: 6 years ago

I confirmed your issue. If you include the GroupMask field in the results, it is reported as System.Byte[] - so likely it's some kind of bit mask field. I have no idea how this field is used to track Restriction Groups per user, but anyway, there are no Bitwise GI functions so I can't see how it will be possible to accomplish what you are trying to do via GI.


Reply
Peter John Sarador
Posts: 13
 Peter John Sarador
Topic starter
April 26, 2019 5:04 am
(@peter-john-sarador)
Eminent Member
Joined: 4 years ago

Oh I see thanks for the info. I hope there's a way to do this.  If not GI at least a report where I can show how many users is accessing a specific group in RLS.


Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
June 1, 2019 12:21 am
(@timrodman)
Famed Member
Joined: 10 years ago

I just tried and wasn't able to figure it out either 🙁


Reply
JustPaul
Posts: 33
 JustPaul
July 30, 2019 9:59 am
(@justpaul)
Trusted Member
Joined: 5 years ago

anyone have an update on this topic. I too am attempting a GI/Report that will provide Row Level Security group with Users who have access.  

its Not possible to go directly from RelationGroup to Users, the groupmask field mentioned above is only coincidentally matching as the relation is not one for one.

Thanks for any assistance.


Reply
timg
Posts: 23
 timg
July 30, 2019 1:45 pm
(@timg)
Eminent Member
Joined: 5 years ago

There are some details on the structure of Restriction Groups in this article - https://asiablog.acumatica.com/2016/08/restriction-groups-architecture.html

I have not been successful in creating generic inquiries using the RelationGroup and GroupMask objects either.  It may be possible to create a SQL View and then use that as the basis for a generic inquiry, but I have not tried that approach yet.


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
July 30, 2019 4:07 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Without Bitwise operators available in GI, it's just not possible.

If you feel strongly about needing it, add an idea to the ideas portal.

https://feedback.acumatica.com/ideas

Frankly speaking I see no reason why Acumatica needed to use bitmasking for implementation of Restriction Groups. It's overly complex and non-relational.


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 46 Online
  • 2,338 Members
Our newest member: Shoaib Shafquat
Latest Post: Pick List report suddenly not splitting on Shipment
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

  • Tim Rodman Julian Schrenzel David Edmonson
Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×