SharePoint 2013 UserInfo Table

Cacopardo, Andrea 22 Reputation points
2022-07-04T14:18:07.56+00:00

Hello everyone,
I need to extract all users who have authenticated themselves on sites relating to a particular DB.

Is it correct to query the UserInfo and specifically the tp_ExternalTokenLastUpdated field?

In the explanations of "External" it is not clear to me what it refers to, for example it refers to users connected in VPN but belonging to AD or what? What is its significance?

Thanks a lot

Example of select that i use:

Select field1,field2, tp_ExternalTokenLastUpdated
from [WSS_example].[dbo].[UserInfo]
where tp_ExternalTokenLastUpdated > DATEADD (d,-90,SYSDATETIME())

Microsoft 365 and Office SharePoint Server For business
{count} votes

Accepted answer
  1. Yanli Jiang - MSFT 31,596 Reputation points Microsoft External Staff
    2022-07-07T16:33:30.103+00:00

    Hi @Anonymous ,
    According to my research, "External" should mean this:
    220288-07124.png
    For more information about UserInfo Table, please refer to this.

    It is possible to search from the DB. It is recommended to add the following two fields:

     ,[tp_Login]  
     ,[tp_Title]  
    

    220290-07125.png

    Thanks,
    Yanli Jiang

    ===========================================

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


3 additional answers

Sort by: Most helpful
  1. Cacopardo, Andrea 22 Reputation points
    2022-07-08T10:00:16.357+00:00

    Thanks but whats means "An External Group Token"? On the link it is not clear.

    That you know it is possible to query the tables of the DB or is it not recommended? For example, only SharePoint can do it exclusively.

    Thanks a lot

    0 comments No comments

  2. Cacopardo, Andrea 22 Reputation points
    2022-07-11T13:34:31.3+00:00

    Hello,
    we're talking about SharePoint 2013, not 365 or others.

    It doesn't seem clear what you wrote, the select on the UserInfo table gives me users belonging to the domain like this example:

    219591-image.png

    All users are within domain. Any other indications?

    In addition, can we perform the select on the db or we can't?

    Thaks a lot.


  3. Cacopardo, Andrea 22 Reputation points
    2022-07-13T09:22:18.043+00:00

    Thanks, I got the answers that I expected.

    The goodness of the query that I ran is validated by your additional information.

    This additional information helped to understand the original question I wrote.

    Best Regards


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.