Skip to content

Commit 09ecb30

Browse files
committed
publishing & viva namespaces new types and methods
1 parent c413586 commit 09ecb30

File tree

42 files changed

+531
-24
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+531
-24
lines changed

examples/sharepoint/users/search_tenant_users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
ctx = ClientContext(test_team_site_url).with_credentials(test_client_credentials)
1414
result = ClientPeoplePickerWebServiceInterface.client_people_picker_search_user(
15-
ctx, "Joe"
15+
ctx, "Jon"
1616
).execute_query()
1717
entries = json.loads(result.value)
1818
for entry in entries:

generator/import_metadata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ def export_to_file(path, content):
2626
"--endpoint",
2727
dest="endpoint",
2828
help="Import metadata endpoint",
29-
default="sharepoint",
29+
default="graph",
3030
)
3131
parser.add_argument(
3232
"-p",
3333
"--path",
3434
dest="path",
35-
default="./metadata/SharePoint.xml",
35+
default="./metadata/Graph.xml",
3636
help="Import metadata endpoint",
3737
)
3838

office365/admin/people_settings.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
from office365.entity import Entity
2+
from office365.entity_collection import EntityCollection
3+
from office365.outlook.people.profile_card_property import ProfileCardProperty
4+
from office365.runtime.paths.resource_path import ResourcePath
25

36

47
class PeopleAdminSettings(Entity):
58
"""Represents a setting to control people-related admin settings in the tenant."""
9+
10+
@property
11+
def profile_card_properties(self):
12+
"""Contains a collection of the properties an administrator has defined as visible on the
13+
Microsoft 365 profile card."""
14+
return self.properties.get(
15+
"profileCardProperties",
16+
EntityCollection(
17+
self.context,
18+
ProfileCardProperty,
19+
ResourcePath("profileCardProperties", self.resource_path),
20+
),
21+
)

office365/directory/identitygovernance/privilegedaccess/group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from office365.directory.identitygovernance.privilegedaccess.approval import Approval
2-
from office365.directory.identitygovernance.privilegedaccess.group_assignment_schedule_instance import (
2+
from office365.directory.identitygovernance.privilegedaccess.schedule.group_assignment_instance import (
33
PrivilegedAccessGroupAssignmentScheduleInstance,
44
)
55
from office365.entity import Entity

office365/directory/identitygovernance/privilegedaccess/schedule/__init__.py

Whitespace-only changes.

office365/directory/identitygovernance/privilegedaccess/group_assignment_schedule_instance.py renamed to office365/directory/identitygovernance/privilegedaccess/schedule/group_assignment_instance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from office365.directory.identitygovernance.privilegedaccess.schedule_instance import (
1+
from office365.directory.identitygovernance.privilegedaccess.schedule.instance import (
22
PrivilegedAccessScheduleInstance,
33
)
44

office365/directory/identitygovernance/privilegedaccess/schedule_instance.py renamed to office365/directory/identitygovernance/privilegedaccess/schedule/instance.py

File renamed without changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from office365.entity import Entity
2+
3+
4+
class PrivilegedAccessSchedule(Entity):
5+
"""An abstract type that exposes properties relating to the schedule of assigned and eligible membership and
6+
ownership to groups that are governed by PIM."""

office365/outlook/people/__init__.py

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from office365.entity import Entity
2+
3+
4+
class ProfileCardProperty(Entity):
5+
"""
6+
Represents an attribute of a user on the Microsoft 365 profile card for an organization to surface in a shared,
7+
people experience.
8+
9+
The attribute can be an Microsoft Entra ID built-in attribute, such as Alias or UserPrincipalName,
10+
or it can be a custom attribute. For a custom attribute, an administrator can define an en-us default display name
11+
String and a set of alternative translations for the languages supported in their organization.
12+
13+
For more information about how to add properties to the profile card for an organization, see Add or remove
14+
custom attributes on a profile card using the profile card API.
15+
"""

0 commit comments

Comments
 (0)