Using ACCESS 2016 vba with tables stored on SharePoint Online - How to get current SPO userID - ms-access

I have created an access 2016 database, with the backend stored on SharePoint online. Is there a way using VBA that I can get the current user's SPO user info ID?
Thanks for the help.

Related

Create Lotus Notes entry from Access Event

Is it possible to create an entry in a Lotus Notes Calendar, specifically a "reminder" using an Access VBA script when a new entry is made in the Access database table? I have had a search on google but the only thing I can find so far is send an email to Lotus Notes. The email option but work if I can create it as a Lotus Notes invitation. Is that a possible alternative?
If you found examples for sending an email, then you found examples on how to open the users mailfile (called dbMail in the following examples) using OpenMail method of NotesDatabase- class.
Now you just need to create a document using Set doc = dbMail.CreateDocument in that database, tell it to be an Appointment by applying the form- item Call doc.ReplaceItemValue( "Form", "Appointment" ) and then set all the required items. The needed items can be found in the calendaring and scheduling schema at IBM.
Sorry for not posting specific code, but did not want to put more effort in my answer then you did in your question...
The description of all classes (for LotusScript, but they are mainly the same in VB / VBA) can be found in the Domino Designer- Help you find at various places in the web.
If person A can create an appointment for person B, and that appointment is to be created immediately in B's calendar, A would need write-access to B's calendar. If it should work like that for any A and B in the organisation, you'll have a serious problem. That's why Notes works using invitations.
Please define first which of the two applications is leading in your organisation, Notes or the Access Calendar? If it is Notes, you should indeed send invitations, and your application should be inquiring Notes/Domino regularly about the status of the appointments. If it is your Access application, you can indeed put the appointment document directly in the user's database, but that would require write access to all user mail/calendar databases.
We solved a similar problem by creating an intermediary database (application) on the Domino server that is the interface between the (Access) application and the Notes environment. The Notes application runs as a special user, with write-access to all user databases. The Access application can communicate with that database in any way you seem fit: mail, web-services, COM-interface.
Better refrain from writing user mail databases directly. Either send invitations, or create a Notes-based "replicator" application.

Securing SSRS report parameter

I have created an SSRS report which I am using in Asp.net website. Reports accepts server, database,user and password to create connection string dynamically. Dynamic connection string is required because user can select a database at the time of log-in and that database need to be used for SSRS.
One requirement is such that user should be able to create SSRS report himself. For the purpose I provided guideline that how to create parameters that are require data-source's dynamic connection string.
One possible problem I thought is if user do not make parameters as hidden, he will have database credential in clear text.
I thought of adding encryption at asp.net website and decryption in SSRS report but decryption function/code will be easily accessible at the time of designing.
Any idea how to overcome the situation?
I suggested that the OP should read the following documentation:
Specify Credential and Connection Information for Report Data Sources
This were the remarks made by the OP:
Prompt the user for credentials :Not possible because some users can view report with provided website user/password. He will have no idea about DB.
Store credentials: Not possible because user will see data in website as well as in report by database selected at the time of log-in. Database selection option is given at the time of log-in in website because there would be more than one database. so one report will show different data based on selected DB by the user.
Use Windows integrated security : Not possible because most of our client are not allowing use to use integrated security for database access. we need to use their provided credentials for all database access.
Use no credentials : we need to use client provided credentials for all database access. Correct me if i missed something from that article
This is my response and answer to the presented problem:
You require a user to login to your website, as soon as the user is logged in you should be able to know who this user is. This also means that you can give a user specific rights/access to your application.
So you can use the Stored Credentials and more specifically use the Integrated Security.
Type | Context for network connection | Data Source
-------------------- | -------------------------------- | -----------------
Integrated security | Impersonate the current user | For all data source types, connect using the current user account
I believe the following documentation might be exactly what you're looking for.
How to: Secure Connection Strings When Using Data Source Controls
I would strongly recommend creating a new table containing data that specifies the different access levels to then have a junction table with the user table. This will make it easy to determine which user has access to which report and allow for an easy implementatuon of the Integraded Security.

How to signout in access runtime 2013

I have data stored in SharePoint List, and using frontend as access to filling the data and generate reports.
Users need to sign-in into access run-time to be able to connect to the SharePoint.
After signing in, How do they sign-out?
IF sign-out is not available, is there any registry value that cab be deleted, which will delete the sign-in.

Import MS Excel table to MS Access

I have a MS Excel database (my company CRM) which I am trying to import to MS Access (Northwind DB) database.
I am able to fetch the Excel file to my Access database (at the bottom of the Access). But my problem is I am not able to fetch the Excel tables directly into my Access database so that I do not have to enter them manually and it shows directly in my Customer List.
I hope I am clear.
Thanks in advance!

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.