This commit is contained in:
Hong Ooi 2019-03-24 22:52:07 +11:00
Родитель 0dde061ff2
Коммит e69154ee96
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -17,6 +17,7 @@
#' - `sync_fields()`: Synchronise the R object with the app data in Azure Active Directory.
#' - `list_group_memberships()`: Return the IDs of all groups this app is a member of.
#' - `list_object_memberships()`: Return the IDs of all groups, administrative units and directory roles this app is a member of.
#' - `list_owners(type=c("user", "group", "application", "servicePrincipal"))`: Return a list of all owners of this app. Specify the `type` argument to filter the result for specific object type(s).
#' - `create_service_principal(...)`: Create a service principal for this app, by default in the current tenant.
#' - `get_service_principal()`: Get the service principal for this app.
#' - `delete_service_principal(confirm=TRUE)`: Delete the service principal for this app. By default, ask for confirmation first.
@ -103,6 +104,12 @@ public=list(
password
},
list_owners=function(type=c("user", "group", "application", "servicePrincipal"))
{
res <- private$get_paged_list(self$do_operation("owners"))
private$init_list_objects(private$filter_list(res, type))
},
create_service_principal=function(...)
{
properties <- modifyList(list(...), list(appId=self$properties$appId))

Просмотреть файл

@ -32,6 +32,7 @@ Base class representing an AAD app.
\item \code{sync_fields()}: Synchronise the R object with the app data in Azure Active Directory.
\item \code{list_group_memberships()}: Return the IDs of all groups this app is a member of.
\item \code{list_object_memberships()}: Return the IDs of all groups, administrative units and directory roles this app is a member of.
\item \code{list_owners(type=c("user", "group", "application", "servicePrincipal"))}: Return a list of all owners of this app. Specify the \code{type} argument to filter the result for specific object type(s).
\item \code{create_service_principal(...)}: Create a service principal for this app, by default in the current tenant.
\item \code{get_service_principal()}: Get the service principal for this app.
\item \code{delete_service_principal(confirm=TRUE)}: Delete the service principal for this app. By default, ask for confirmation first.