Users
Create, update, delete, and query Users from SharePoint.
テーブル固有の情報
Select
SharePoint Account のために作成されたすべてのユーザーを取得する:
SELECT * FROM Users
1つのグループに所属するすべてのユーザーを取得することも可能です。その場合には、Group Name を指定します。
Select * FROM Users WHERE [Group]="GroupName"
指定されたロールを持つユーザーを取得することも可能です。その場合には、Role Name を指定します。
Select * FROM Users WHERE [Role]="RoleName"
Insert
SharePoint にユーザーを追加するには、ユーザーの追加先のグループまたはロールを指定する必要があります。さらに、LoginName を指定します。
INSERT INTO Users (LoginName, Role) VALUES ('MYDOMAIN\MyUser', 'My Role')
Columns
Name | Type | ReadOnly | Description |
LoginName# [KEY] | String | False |
The login name of the user. |
Name# | String | False |
The name of the user. |
Email# | String | False |
The email address of the user. |
IsInDomainGroup | Boolean | True |
A boolean indicating if the user is in the domain group. |
IsSiteAdmin | Boolean | True |
A boolean indicating if the user is a site admin. |
Notes# | String | False |
Optional notes concerning the user. |
SecurityId | String | True |
The security Id (SID) for the user. |
Pseudo-Columns
SELECT ステートメントのWHERE 句では、疑似列フィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
Name | Type | Description |
Group | String |
The group you are adding a user to or deleting the user from. This is an input-only value and either Group or Role must be specified for inserts, but may be optionally specified for deletions. |
Role | String |
The role you are adding a user to or deleting the user from. This is an input-only value and either Group or Role must be specified for inserts, but may be optionally specified for deletions. |
NewName | String |
The new name of the user. Specify this value when updating the user to change the name of the user. |