Number of users logged in Business Objects 5.x Version - business-objects

I am trying to create audit report for number of users logged in business objects.
I have read from Blogs , this version is not supported with Query Builders, not able to connect through query Builder.
I tried to run these scripts to identify number of users logged in BO, in
MS access Query:
SELECT * FROM CI_INFOOBJECTS
WHERE SI_PARENTID=23 AND SI_NAME = 'COMPANY A'
I have also found this script in SAP blogs
SELECT count (SI_NAME) FROM CI_SYSTEMOBJECTS
WHERE SI_LASTLOGONTIME> '2013.02.14.00.00.01' AND SI_KIND = 'Connection'
Error for both queries:
Tables/objects do not exist
I Guess this is only supported for newer versions of BO repository. Any one could help me to create similar scripts for BO repository for 5X version of Busienss objects. I am not familiar with older version tables and could not build query.
Note: I want to query number of users logged into Business objects at
a given period
Database: BO repository
SQL : MS Access

I don't believe the number or list of active users is query-able in BO prior to XI. You can get the list of active users in the Admin Console, however. The number of active users is displayed in the status bar, and the list of active users is available on the Site Properties tab -- click on "List of logged in users".
If you want historical connection info, then that will be available in the auditing tables, provided that you have a license for Auditor and it is enabled in Admin Console.
Note that this will not capture users logged in to Full Client (aka DeskI); only those logged in to Infoview.

Related

Reporting Services : adding permissions for a user that is not recognized yet

I am using Reporting Services for SQL Server 2016. If we want to enter a new user and gives him permissions on reports we know that we can use report service interface in order to enter a new user which will be tested if it really exists else the message user or group name is not recognized is displayed.
Is there away to enter permissions for a user that doesn't exist yet? I mean a user which it's Sid is null
Use Active Directory. Set up a group, such as "SSRS Browsers", within AD. Ensure any and all users who require access to the reports (including new users) are listed in this group. Then give the AD group the right level of access within SSRS itself.

Birt: Store user stay time on reports and visit counts to database

I have deployed birtviewer on tomcat 7. I am using tomcat form based authentication to control users access to the reports. Currently I have come up with a requirement to store to mysql database the user visits counts and the time he spends on each birt report
I have done seme research on how to extract total session time from session variable but the problems I am facing are below
1) A session starts as soon as a user logs in. How do I collect the session info for the subsequent reports? For example I have some bunch of reports that are connected to a main report. If a user logs in, he is taken to the main page. After that, the user is not required to log in to the next reports that user visits. If the user visits other reports, how do I collect the information about the time that user spends on each report?
2) I would also like to collect the visit counts that a user makes to each report? How can I collect this info?
3) How can I send this info from birt reports to the database?
Please let me know if you have any questions or need more explanation. I have googled and could gather information about how to extract info from session variable but I could get any info on how to do it for each birt report separately (even though all the reports user the same session info)
Regards
Arif
you could write a ServletFiler in Java and add the packed jar to the WEB-INF\lib folder of your BIRT Viewer and configure the Filter mapping in the WEB-INF\web.xml of your viewer, so it is triggered every time you call an URL of the BIRT Viewer.
Insider your filter you can read the session time and save the timestamp and a click counter to your database. You can calculate the visited time by substracting it from the next saved timestamp identified by the session ID.

Updating Woocommerce Orders Programmatically

I have an eCommerce site running Woocommerce on top of Wordpress, and the company running it has changed there shipping system to an external company who stores the products in their warehouse and ships the products when they are bought.
In terms of automation, downloading information on new orders and sending it to the shipping company is fine, but when they respond to me with an XML of the orders sent and the associated tracking numbers, I need to be able to have a system that automatically updates the orders (including sending out the emails necessary). However, the only way I currently know how to do that is to update the MySQL database. But with that method, the automated email system is overridden and ignored.
Does anyone know how I can update orders statues and other information programmatically, which would allow Woocommerce's internal functions to be executed in the same way as manually logging into the admin side and updating the order?
Found a solution to this yet?
The code below works to mark an order as complete, but does not execute other actions as you describe in the admin
// create a new checkout instance and order id
$checkout = new WC_Checkout();
$this_order_id = $checkout->create_order();
$order = new WC_Order($this_order_id);
$order->update_status('completed');

SSRS: Displaying User specific data on a report

on SQL Server Reporting Services, I have the below requirnment for a report
Users are authenticated for Reporting using Active Directory (windows domain accounts)
We have an custom authentication DB and the data that should appear on the report are related to users on this Authentication DB
Need to generate a report that list Sales data for all the stores, and "all data" should only be available to "Admin" users
For "Non Admin" users, same report should only display sales data for the single store that they are associated with. (Not the whole list of sales data for all stores)
Definition of "Admin", "Non Admin" user categories are defined on the custom Authentication DB.
Really appreciate if someone could give me the directions on what approaches I should follow.
Please let me know if I should further clarify my requirements.
Thanks.
In SSRS you can access the User ID (=User!UserID). Set this up as an internal parameter for the report, and pass this into your dataset queries as a parameter.
Now you can join to your custom permissions table in your dataset queries.
Use a query constructed with this method to populate your parameter drop down for "Store."
Also use the parameter again and double check that the user has permissions in your main query that returns results. This will avoid a user being able to manually specify a store that they don't have permissions for. (Otherwise URL access would allow users access to reports they shouldn't get.)
Let me know if any of this isn't making sense.

Google Group - Clone or back up a group on admin console

We have a large emergency notification list (Google group) consisting of 75000 members. The membership of this group is maintained through a daily sync with enterprise identity management tables using GSuite Admin SDK - Group Settings API. Can anybody suggest an easy way to create a backup group for this list directly on Google Admin console. If the original list lost its membership it took 14 hours to bring the list up via API. Hence the need for a backup group. This backup google group must be ready to send the emergency alert message in case some thing happened to original group membership during daily sync.