Actions181
- Account Actions
- Get Account
- Create Account
- Update Email
- Update Name
- Update Password
- Update Phone
- Update Status
- Get Preferences
- Update Preferences
- List Sessions
- Delete Sessions
- Get Session
- Update Session
- Delete Session
- Create Anonymous Session
- Create Email/Password Session
- Create Magic URL Session
- Create OAuth2 Session
- Create Phone Session
- Create Session from Token
- Create JWT
- Create Magic URL
- Create Phone Token
- Create Email Verification
- Update Email Verification
- Create Phone Verification
- Update Phone Verification
- Create Password Recovery
- Update Password Recovery
- Create Recovery
- Update Recovery
- Update MFA
- Create MFA Authenticator
- Update MFA Authenticator
- Delete MFA Authenticator
- Create MFA Challenge
- Update MFA Challenge
- Attribute Actions
- Avatars Actions
- Collection Actions
- Database Actions
- Document Actions
- Functions Actions
- Index Actions
- Locale Actions
- Messaging Actions
- Sites Actions
- Storage Actions
- Teams Actions
- Users Actions
Teams → Get Membership
AI-generatedOverview
This node interacts with the Appwrite API to manage team memberships. Specifically, the 'Get Membership' operation retrieves detailed information about a specific membership within a team, identified by the Team ID and Membership ID. This is useful for scenarios where you need to verify or display membership details, such as user roles or status within a team in an application.
Use Case Examples
- Retrieve membership details to display user roles in a team management dashboard.
- Check membership status before allowing access to team-specific resources.
Properties
| Name | Meaning |
|---|---|
| Team ID | The unique identifier of the team from which to get the membership information. |
| Membership ID | The unique identifier of the membership to retrieve within the specified team. |
Output
JSON
membershipId- The ID of the membership retrieved.teamId- The ID of the team to which the membership belongs.userId- The ID of the user who is a member of the team.role- The role assigned to the user within the team.joinedAt- The timestamp when the user joined the team.
Dependencies
- Appwrite API endpoint, project ID, and API key credentials are required to authenticate and interact with the Appwrite service.
Troubleshooting
- Ensure that the Team ID and Membership ID provided are correct and exist in the Appwrite project to avoid 'not found' errors.
- Verify that the API key has sufficient permissions to read team membership information.
- Common error messages include authentication failures due to invalid API keys or insufficient permissions, and resource not found errors if the IDs are incorrect.