Is there a way to allow access for certain reports for certain users?

193 views
Skip to first unread message

Erich Kulak

unread,
Sep 15, 2021, 5:29:43 PM9/15/21
to XMPie Interest Group
I am looking for a way to be able to create custom reports, and hide them from some back office users. I would also like to be to hide a couple other reports from those same users.

They only thing I've been able to find is removing the reports tab completely from users I want to, but not which reports are viewable to them.

Basically I want to be able to see all reports, but not have other users see like Order Item Listing and Order Profit Margins.

Thanks.

couch

unread,
Sep 15, 2021, 6:02:01 PM9/15/21
to XMPie Interest Group
AFAIK, there is no setting in uStore to show/hide reports in the backoffice based on the logged in user.
I believe you could work around this by adding some javascript to the report page or the admin master page to grab the username and modify the elements of the report select tag.
You would have to keep a copy of your code however, and  be prepared to add the code again after every uStore upgrade. 

Erich Kulak

unread,
Sep 15, 2021, 6:04:07 PM9/15/21
to XMPie Interest Group
Thanks.
That's what I was thinking, I just didn't know if anyone had done this before and had an easy way of doing it.

Wayne Butcher

unread,
Sep 15, 2021, 6:49:10 PM9/15/21
to xmpie...@googlegroups.com
Hi,
If you are using the new NG Skin, I would recommend building in client side reporting to the NG Skin

image.png

This negates the need to unnecessarily expose the uStore Back office.
If the preference is to use the uStore Backoffice then JavaScript can be used.
However this can only really be done in the master pages with a combination of ASP.NET and JavaScript.
I have done this so I know it does work. FYI we prepended all Global reports with an * to make them easier to identify and match custom reports to the associated user group.

Regards,
Wayne 







--
You received this message because you are subscribed to the Google Groups "XMPie Interest Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xmpie-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xmpie-users/6b149934-f6c3-4b44-9160-0153078230acn%40googlegroups.com.

Alan

unread,
Jan 24, 2022, 12:35:28 PM1/24/22
to XMPie Interest Group
Hello.

Question: exactly did you go about this?
For front end react theme case - did you hard code .Net with all sql report codes into master page and return the one needed based on url or something along these lines? Or is there some other way to access reports added to admin side?

Thanks.

Wayne

unread,
Jan 24, 2022, 8:06:29 PM1/24/22
to XMPie Interest Group
Hi Alan,
Not really wanting to give away too much as we are looking at selling the our developed skin as it includes other features like cart count, client side reports, inventory ordering etc...
I would say that our client side reports are NG (React) based and written so the user can only view data related to the current store.

Regards,
Wayne

Alan

unread,
Jan 26, 2022, 8:31:32 PM1/26/22
to XMPie Interest Group
That is absolutely fair!  Good luck with your endeavor  and thank you for feedback either way.
Reply all
Reply to author
Forward
0 new messages