- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class Relations
::nx::EnsembleObject create ::ms::Graph::slot::__user
Methods (to be applied on the object)
get (scripted)
# # Retrieve the properties and relationships of user object. # # Details: https://docs.microsoft.com/en-us/graph/api/user-get # # @param select return selected attributes, e.g. displayName,givenName,postalCode set r [:request -method GET -token [:token] -url /users/$principal?[:params {select}]] return [:expect_status_code $r 200]
list (scripted)
# # Retrieve the properties and relationships of user # object. For the users collection the default page size # is 100, the max page size is 999, if you try $top=1000 # you'll get an error for invalid page size. # # Details: https://docs.microsoft.com/en-us/graph/api/user-list # # @param select return selected attributes, e.g. displayName,givenName,postalCode # @param filter restrict answers to a subset, e.g. "startsWith(displayName,'Neumann')" # @param max_entries retrieve this desired number of tuples (potentially multiple API calls) # @param top return up this number of tuples per request (page size) set r [:request -method GET -token [:token] -url /users?[:params {select filter top}]] return [:paginated_result_list -max_entries $max_entries $r 200]
me (scripted)
# # Retrieve the properties and relationships of the current # user identified by the token. # # The "me" request is only valid with delegated authentication flow. # # Details: https://docs.microsoft.com/en-us/graph/api/user-get # # @param select return selected attributes, e.g. displayName,givenName,postalCode # if {$token eq ""} { set token [:token] } set r [:request -method GET -token $token -url /me?[:params {select}]] return [:expect_status_code $r 200]
memberof (scripted)
# # Get groups, directory roles, and administrative units that # the user is a direct member of. # # Details: https://docs.microsoft.com/en-us/graph/api/user-list-memberof # # @param count when "true" return just a count # @param filter filter criterion # @param search search criterion, e.g. displayName:Video # @param orderby sorting criterion, e.g. displayName set r [:request -method GET -token [:token] -url /users/${principal}/memberOf?[:params { count filter orderby search}]] return [:expect_status_code $r 200]
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables