以下の内容はhttps://unageanu.hatenablog.com/entry/20090108/1231406833より取得しました。


SharePointグループを作ってユーザーを登録するサンプル

SharePointグループを作ってユーザーを登録するサンプルです。例によってWebサービスを利用。

require 'wss'

HOST = "<SharePointServerのホスト>"
PORT = <SharePointServerのポート>
USER = "<ユーザー>"
PASS = "<パスワード>"

home = WSS.new( HOST, PORT, USER, PASS )
userGroup = home.service( :UserGroup, "sites/testsite" )

# グループの作成
userGroup.addGroup(
  "groupName"=>"test_group1",
  "ownerIdentifier"=>USER,
  "ownerType"=>"user",
  "defaultUserLoginName"=>USER, # デフォルトで登録するユーザー/指定しないと登録できない・・・。
  "description"=>"テスト用グループ"
)

# グループへのユーザーの追加
userGroup.addUserToGroup(
  "groupName"=>"test_group1",
  "userName"=>"test_user",
  "userLoginName"=>"foo\\user1",
  "userEmail"=>"",
  "userNotes"=>""
)

wss.rbはこちらを参照




以上の内容はhttps://unageanu.hatenablog.com/entry/20090108/1231406833より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14